From e7f94a3f359fe1be94a0863b731d94d245093848 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 19 May 2026 00:23:20 +0300 Subject: feat: support hermes agent integration refs #144 --- tests/server_headless.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/server_headless.rs') diff --git a/tests/server_headless.rs b/tests/server_headless.rs index 51a9d005..9ea47024 100644 --- a/tests/server_headless.rs +++ b/tests/server_headless.rs @@ -583,11 +583,11 @@ fn client_handshake_succeeds() { // Connect to the client socket and perform a handshake. let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket"); - // Send Hello with version 6, 80 cols, 24 rows. + // Send Hello with version 7, 80 cols, 24 rows. let (version, error) = - client_handshake(&mut stream, 6, 80, 24).expect("handshake should succeed"); + client_handshake(&mut stream, 7, 80, 24).expect("handshake should succeed"); - assert_eq!(version, 6, "server should report protocol version 6"); + assert_eq!(version, 7, "server should report protocol version 7"); assert!( error.is_none(), "handshake should not have an error: {:?}", @@ -616,7 +616,7 @@ fn client_handshake_rejects_incompatible_version() { let (version, error) = client_handshake(&mut stream, 0, 80, 24) .expect("should read Welcome response even on rejection"); - assert_eq!(version, 6, "server should report its version 6"); + assert_eq!(version, 7, "server should report its version 7"); assert!( error.is_some(), "version 0 should be rejected with an error" @@ -641,10 +641,10 @@ fn client_handshake_clamps_small_terminal_size() { // Send Hello with 0x0 terminal size — should be clamped. let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket"); - let (version, error) = client_handshake(&mut stream, 6, 0, 0) + let (version, error) = client_handshake(&mut stream, 7, 0, 0) .expect("handshake with 0x0 should succeed (server clamps)"); - assert_eq!(version, 6); + assert_eq!(version, 7); assert!( error.is_none(), "0x0 size should be accepted (clamped): {:?}", @@ -704,9 +704,9 @@ fn no_hello_client_closed_within_five_seconds() { // Verify the server is still healthy — a proper client can still connect. let mut good_stream = UnixStream::connect(&client_socket).expect("should connect after no-hello client"); - let (version, error) = client_handshake(&mut good_stream, 6, 80, 24) + let (version, error) = client_handshake(&mut good_stream, 7, 80, 24) .expect("proper handshake should still work after no-hello client"); - assert_eq!(version, 6); + assert_eq!(version, 7); assert!(error.is_none()); // API should still work. -- cgit v1.2.3