Skip to content

Commit 8acfd9c

Browse files
Merge branch '4.4' into 5.3
* 4.4: Try making tests a bit less transient
2 parents bc772e5 + 94a3bcf commit 8acfd9c

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
@@ -838,16 +838,16 @@ public function testTimeoutWithActiveConcurrentStream()
838838
public function testTimeoutOnInitialize()
839839
{
840840
$p1 = TestHttpServer::start(8067);
841-
$p2 = TestHttpServer::start(8077);
841+
$p2 = TestHttpServer::start(8078);
842842

843843
$client = $this->getHttpClient(__FUNCTION__);
844844
$start = microtime(true);
845845
$responses = [];
846846

847847
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
848-
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
848+
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
849849
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
850-
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
850+
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
851851

852852
try {
853853
foreach ($responses as $response) {
@@ -871,16 +871,16 @@ public function testTimeoutOnInitialize()
871871
public function testTimeoutOnDestruct()
872872
{
873873
$p1 = TestHttpServer::start(8067);
874-
$p2 = TestHttpServer::start(8077);
874+
$p2 = TestHttpServer::start(8078);
875875

876876
$client = $this->getHttpClient(__FUNCTION__);
877877
$start = microtime(true);
878878
$responses = [];
879879

880880
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
881-
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
881+
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
882882
$responses[] = $client->request('GET', 'http://localhost:8067/timeout-header', ['timeout' => 0.25]);
883-
$responses[] = $client->request('GET', 'http://localhost:8077/timeout-header', ['timeout' => 0.25]);
883+
$responses[] = $client->request('GET', 'http://localhost:8078/timeout-header', ['timeout' => 0.25]);
884884

885885
try {
886886
while ($response = array_shift($responses)) {

0 commit comments

Comments
 (0)