Skip to content

Commit 55d48dd

Browse files
abnegateclaude
andcommitted
(fix): drain initial handshake echo before send/recv test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 72fb482 commit 55d48dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Integration/TCPServerTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ public function testTCPAdapterGetConnectionAndClose(): void
7070
$cached = $adapter->getConnection('ignored', 1);
7171
$this->assertSame($client, $cached);
7272

73-
// Send/recv through the connection
73+
// 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
7478
$client->send('ping');
7579
$response = $client->recv(1.0);
7680
$this->assertSame('ping', $response);

0 commit comments

Comments
 (0)