Skip to content

Commit 94a3bcf

Browse files
Try making tests a bit less transient
1 parent 95c7658 commit 94a3bcf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

HttpClient/Test/HttpClientTestCase.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -813,16 +813,16 @@ public function testTimeoutWithActiveConcurrentStream()
813813
public function testTimeoutOnInitialize()
814814
{
815815
$p1 = TestHttpServer::start(8067);
816-
$p2 = TestHttpServer::start(8077);
816+
$p2 = TestHttpServer::start(8078);
817817

818818
$client = $this->getHttpClient(__FUNCTION__);
819819
$start = microtime(true);
820820
$responses = [];
821821

822822
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
823-
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
823+
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
824824
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
825-
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
825+
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
826826

827827
try {
828828
foreach ($responses as $response) {
@@ -846,16 +846,16 @@ public function testTimeoutOnInitialize()
846846
public function testTimeoutOnDestruct()
847847
{
848848
$p1 = TestHttpServer::start(8067);
849-
$p2 = TestHttpServer::start(8077);
849+
$p2 = TestHttpServer::start(8078);
850850

851851
$client = $this->getHttpClient(__FUNCTION__);
852852
$start = microtime(true);
853853
$responses = [];
854854

855855
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
856-
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
856+
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
857857
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
858-
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
858+
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
859859

860860
try {
861861
while ($response = array_shift($responses)) {

0 commit comments

Comments
 (0)