diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-06 17:41:44 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-06 17:42:38 +0300 |
| commit | 4001fd2ec8ff05a982da18744b8cbde9df3ab530 (patch) | |
| tree | f8dbf984cff9a4b025e86481d3f70c89322bd79f /tests/server_headless.rs | |
| parent | 048d8a29195d580014b24ee3fc7e89ac6bdfee8a (diff) | |
feat: improve toast ergonomics
refs #486
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 08d4f5a5..84a0c29e 100644 --- a/tests/server_headless.rs +++ b/tests/server_headless.rs @@ -595,9 +595,9 @@ fn client_handshake_succeeds() { // Send Hello with the current protocol version, 80 cols, 24 rows. let (version, error) = - client_handshake(&mut stream, 12, 80, 24).expect("handshake should succeed"); + client_handshake(&mut stream, 13, 80, 24).expect("handshake should succeed"); - assert_eq!(version, 12, "server should report protocol version 12"); + assert_eq!(version, 13, "server should report protocol version 13"); assert!( error.is_none(), "handshake should not have an error: {:?}", @@ -626,7 +626,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, 12, "server should report its version 12"); + assert_eq!(version, 13, "server should report its version 13"); assert!( error.is_some(), "version 0 should be rejected with an error" @@ -651,10 +651,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, 12, 0, 0) + let (version, error) = client_handshake(&mut stream, 13, 0, 0) .expect("handshake with 0x0 should succeed (server clamps)"); - assert_eq!(version, 12); + assert_eq!(version, 13); assert!( error.is_none(), "0x0 size should be accepted (clamped): {:?}", @@ -714,9 +714,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, 12, 80, 24) + let (version, error) = client_handshake(&mut good_stream, 13, 80, 24) .expect("proper handshake should still work after no-hello client"); - assert_eq!(version, 12); + assert_eq!(version, 13); assert!(error.is_none()); // API should still work. |
