diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-24 21:21:58 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-24 21:30:04 +0300 |
| commit | 420925d141c8805e610eb0d62d49d8b9b483d961 (patch) | |
| tree | bbd1f778a038bf4387c704a0df921fa53e7af615 /tests/server_headless.rs | |
| parent | 43c6ca3a5dbdcefc6c6dc29be9ce81d990baf39e (diff) | |
fix: support scrolling direct agent attaches
Diffstat (limited to 'tests/server_headless.rs')
| -rw-r--r-- | tests/server_headless.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/server_headless.rs b/tests/server_headless.rs index a81d8302..332398e0 100644 --- a/tests/server_headless.rs +++ b/tests/server_headless.rs @@ -594,9 +594,9 @@ fn client_handshake_succeeds() { // Send Hello with the current protocol version, 80 cols, 24 rows. let (version, error) = - client_handshake(&mut stream, 10, 80, 24).expect("handshake should succeed"); + client_handshake(&mut stream, 11, 80, 24).expect("handshake should succeed"); - assert_eq!(version, 10, "server should report protocol version 10"); + assert_eq!(version, 11, "server should report protocol version 11"); assert!( error.is_none(), "handshake should not have an error: {:?}", @@ -625,7 +625,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, 10, "server should report its version 10"); + assert_eq!(version, 11, "server should report its version 11"); assert!( error.is_some(), "version 0 should be rejected with an error" @@ -650,10 +650,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, 10, 0, 0) + let (version, error) = client_handshake(&mut stream, 11, 0, 0) .expect("handshake with 0x0 should succeed (server clamps)"); - assert_eq!(version, 10); + assert_eq!(version, 11); assert!( error.is_none(), "0x0 size should be accepted (clamped): {:?}", @@ -713,9 +713,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, 10, 80, 24) + let (version, error) = client_handshake(&mut good_stream, 11, 80, 24) .expect("proper handshake should still work after no-hello client"); - assert_eq!(version, 10); + assert_eq!(version, 11); assert!(error.is_none()); // API should still work. |
