From 7825c097b87530d8210dcee069e238e5e98d0359 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Tue, 6 Oct 2015 17:39:14 +0000 Subject: [PATCH] Adjust detection of stream timeouts in maybe skip tests for https tests This is a follow up to [34848]. See #33968. git-svn-id: https://develop.svn.wordpress.org/trunk@34874 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/http/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/http/base.php b/tests/phpunit/tests/http/base.php index 096f4e81df..0084ba4352 100644 --- a/tests/phpunit/tests/http/base.php +++ b/tests/phpunit/tests/http/base.php @@ -32,7 +32,7 @@ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase { $this->markTestSkipped( 'HTTP timeout' ); } - if ( 'stream_socket_client(): unable to connect to tcp://s.w.org:80 (Connection timed out)' === $response->get_error_message() ){ + if ( 0 === strpos( $response->get_error_message(), 'stream_socket_client(): unable to connect to tcp://s.w.org:80' ) ) { $this->markTestSkipped( 'HTTP timeout' ); }