Skip to content

Commit

Permalink
async first request
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Nov 28, 2024
1 parent b81d870 commit 745444b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Connection/Http2ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,10 @@ public function testServerGoAwayFrame(): void
$this->server->close();
});

$response1 = $stream1->request($request1, new NullCancellation);
$response1Future = async(fn () => $stream1->request($request1, new NullCancellation));
$response2Future = async(fn () => $stream2->request($request2, new NullCancellation));

$response1 = $response1Future->await();
self::assertSame(200, $response1->getStatus());
self::assertSame('test', $response1->getBody()->buffer());

Expand Down

0 comments on commit 745444b

Please sign in to comment.