Skip to content

Commit 407fb46

Browse files
Merge branch '4.3' into 4.4
* 4.3: consistently throw NotSupportException [HttpKernel] Clarify error handler restoring process again [HttpClient] Remove CURLOPT_CONNECTTIMEOUT_MS curl opt [Intl] fix nullable phpdocs and useless method visibility of internal class Resilience against file_get_contents() race conditions.
2 parents 3854316 + 69f0e3e commit 407fb46

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Test/HttpClientTestCase.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,16 @@ public function testResolve()
583583
$client->request('GET', 'http://symfony.com:8057/', ['timeout' => 1]);
584584
}
585585

586+
public function testNotATimeout()
587+
{
588+
$client = $this->getHttpClient(__FUNCTION__);
589+
$response = $client->request('GET', 'http://localhost:8057/timeout-header', [
590+
'timeout' => 0.5,
591+
]);
592+
usleep(510000);
593+
$this->assertSame(200, $response->getStatusCode());
594+
}
595+
586596
public function testTimeoutOnAccess()
587597
{
588598
$client = $this->getHttpClient(__FUNCTION__);

0 commit comments

Comments
 (0)