We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3854316 + 69f0e3e commit 407fb46Copy full SHA for 407fb46
Test/HttpClientTestCase.php
@@ -583,6 +583,16 @@ public function testResolve()
583
$client->request('GET', 'http://symfony.com:8057/', ['timeout' => 1]);
584
}
585
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
+
596
public function testTimeoutOnAccess()
597
{
598
$client = $this->getHttpClient(__FUNCTION__);
0 commit comments