Make WordPress Core

Changeset 57904


Ignore:
Timestamp:
04/01/2024 02:30:47 PM (8 months ago)
Author:
SergeyBiryukov
Message:

Tests: Revert the image size change in wp_remote_head() and wp_remote_get() tests.

The exact size in the response appears to differ between platforms, but this should make the tests pass for now.

Follow-up to [57903].

See #60865.

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/wpRemoteFopen.php

    r57903 r57904  
    3232
    3333        $this->assertIsString( $response );
    34         $this->assertSame( 31325, strlen( $response ) );
     34        $this->assertSame( 40148, strlen( $response ) );
    3535    }
    3636}
  • trunk/tests/phpunit/tests/http/functions.php

    r57903 r57904  
    2222
    2323        $this->assertSame( 'image/jpeg', $headers['Content-Type'] );
    24         $this->assertSame( '31325', $headers['Content-Length'] );
     24        $this->assertSame( '40148', $headers['Content-Length'] );
    2525        $this->assertSame( 200, wp_remote_retrieve_response_code( $response ) );
    2626    }
     
    6767        // Should return the same headers as a HEAD request.
    6868        $this->assertSame( 'image/jpeg', $headers['Content-Type'] );
    69         $this->assertSame( '31325', $headers['Content-Length'] );
     69        $this->assertSame( '40148', $headers['Content-Length'] );
    7070        $this->assertSame( 200, wp_remote_retrieve_response_code( $response ) );
    7171    }
     
    8888        // Should return the same headers as a HEAD request.
    8989        $this->assertSame( 'image/jpeg', $headers['Content-Type'] );
    90         $this->assertSame( '31325', $headers['Content-Length'] );
     90        $this->assertSame( '40148', $headers['Content-Length'] );
    9191        $this->assertSame( 200, wp_remote_retrieve_response_code( $response ) );
    9292    }
Note: See TracChangeset for help on using the changeset viewer.