Skip to content

Commit 6499831

Browse files
Skip transient tests on macos
1 parent 94a3bcf commit 6499831

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

HttpClient/Test/HttpClientTestCase.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -810,19 +810,22 @@ public function testTimeoutWithActiveConcurrentStream()
810810
}
811811
}
812812

813+
/**
814+
* @group transient-on-macos
815+
*/
813816
public function testTimeoutOnInitialize()
814817
{
815818
$p1 = TestHttpServer::start(8067);
816-
$p2 = TestHttpServer::start(8078);
819+
$p2 = TestHttpServer::start(8077);
817820

818821
$client = $this->getHttpClient(__FUNCTION__);
819822
$start = microtime(true);
820823
$responses = [];
821824

822825
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
823-
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
826+
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
824827
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
825-
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
828+
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
826829

827830
try {
828831
foreach ($responses as $response) {
@@ -843,19 +846,22 @@ public function testTimeoutOnInitialize()
843846
}
844847
}
845848

849+
/**
850+
* @group transient-on-macos
851+
*/
846852
public function testTimeoutOnDestruct()
847853
{
848854
$p1 = TestHttpServer::start(8067);
849-
$p2 = TestHttpServer::start(8078);
855+
$p2 = TestHttpServer::start(8077);
850856

851857
$client = $this->getHttpClient(__FUNCTION__);
852858
$start = microtime(true);
853859
$responses = [];
854860

855861
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
856-
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
862+
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
857863
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
858-
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
864+
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
859865

860866
try {
861867
while ($response = array_shift($responses)) {

0 commit comments

Comments
 (0)