We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72fb482 commit 55d48ddCopy full SHA for 55d48dd
tests/Integration/TCPServerTest.php
@@ -70,7 +70,11 @@ public function testTCPAdapterGetConnectionAndClose(): void
70
$cached = $adapter->getConnection('ignored', 1);
71
$this->assertSame($client, $cached);
72
73
- // Send/recv through the connection
+ // Drain the echo from the initial 'hello' handshake
74
+ $echo = $client->recv(1.0);
75
+ $this->assertSame('hello', $echo);
76
+
77
+ // Send/recv through the established connection
78
$client->send('ping');
79
$response = $client->recv(1.0);
80
$this->assertSame('ping', $response);
0 commit comments