Make WordPress Core


Ignore:
Timestamp:
10/06/2015 05:39:14 PM (9 years ago)
Author:
jorbin
Message:

Adjust detection of stream timeouts in maybe skip tests for https tests

This is a follow up to [34848].

See #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/base.php

    r34849 r34874  
    3333        }
    3434
    35         if ( 'stream_socket_client(): unable to connect to tcp://s.w.org:80 (Connection timed out)' === $response->get_error_message() ){
     35        if ( 0 === strpos( $response->get_error_message(), 'stream_socket_client(): unable to connect to tcp://s.w.org:80' ) ) {
    3636            $this->markTestSkipped( 'HTTP timeout' );
    3737        }
Note: See TracChangeset for help on using the changeset viewer.