mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
test(dsql): isolate the invalid startup header refusal (#6316)
Send only the invalid length prefix so the early-refusal assertion does not depend on unread trailing bytes at socket close. Preserve the strict EOF assertion. Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
1 parent
d3c2dbb1d9
commit
dace33ddcc
1 file changed
-1
-1
@@ -223,7 +223,6 @@ class DsqlDataPlaneIntegrationTest {
|
||||
}
|
||||
try (Socket socket = new Socket("127.0.0.1", endpoint.port())) {
|
||||
socket.getOutputStream().write(PostgresWire.int32(7));
|
||||
socket.getOutputStream().write(new byte[3]);
|
||||
assertEquals(-1, socket.getInputStream().read());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user