aboutsummaryrefslogtreecommitdiff
path: root/tests/client_mode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/client_mode.rs')
-rw-r--r--tests/client_mode.rs36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/client_mode.rs b/tests/client_mode.rs
index 3ee16aea..958b48a3 100644
--- a/tests/client_mode.rs
+++ b/tests/client_mode.rs
@@ -246,8 +246,8 @@ fn client_connects_and_receives_frame() {
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
let (version, error) =
- client_handshake(&mut stream, 1, 80, 24).expect("handshake should succeed");
- assert_eq!(version, 1, "server should report protocol version 1");
+ client_handshake(&mut stream, 2, 80, 24).expect("handshake should succeed");
+ assert_eq!(version, 2, "server should report protocol version 2");
assert!(
error.is_none(),
"handshake should not have error: {:?}",
@@ -326,8 +326,8 @@ fn client_sees_headless_startup_config_diagnostic() {
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
let (version, error) =
- client_handshake(&mut stream, 1, 80, 24).expect("handshake should succeed");
- assert_eq!(version, 1);
+ client_handshake(&mut stream, 2, 80, 24).expect("handshake should succeed");
+ assert_eq!(version, 2);
assert!(error.is_none(), "{:?}", error);
stream
@@ -375,8 +375,8 @@ fn client_input_forwarded_to_pane() {
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
let (version, error) =
- client_handshake(&mut stream, 1, 80, 24).expect("handshake should succeed");
- assert_eq!(version, 1);
+ client_handshake(&mut stream, 2, 80, 24).expect("handshake should succeed");
+ assert_eq!(version, 2);
assert!(error.is_none(), "{:?}", error);
// Send an Input message containing "echo hello\n".
@@ -429,8 +429,8 @@ fn client_resize_sends_message() {
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
let (version, error) =
- client_handshake(&mut stream, 1, 80, 24).expect("handshake should succeed");
- assert_eq!(version, 1);
+ client_handshake(&mut stream, 2, 80, 24).expect("handshake should succeed");
+ assert_eq!(version, 2);
assert!(error.is_none(), "{:?}", error);
// Drain the initial frame(s).
@@ -486,8 +486,8 @@ fn server_shutdown_sends_message_to_client() {
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
let (version, error) =
- client_handshake(&mut stream, 1, 80, 24).expect("handshake should succeed");
- assert_eq!(version, 1);
+ client_handshake(&mut stream, 2, 80, 24).expect("handshake should succeed");
+ assert_eq!(version, 2);
assert!(error.is_none(), "{:?}", error);
// Send SIGINT so the server takes the graceful shutdown path and
@@ -713,8 +713,8 @@ fn client_receives_frame_after_pane_output() {
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
let (version, error) =
- client_handshake(&mut stream, 1, 80, 24).expect("handshake should succeed");
- assert_eq!(version, 1);
+ client_handshake(&mut stream, 2, 80, 24).expect("handshake should succeed");
+ assert_eq!(version, 2);
assert!(error.is_none(), "{:?}", error);
// Read the initial frame (server renders immediately on client connect).
@@ -767,8 +767,8 @@ fn navigate_mode_keybind_dispatch_in_server() {
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
let (version, error) =
- client_handshake(&mut stream, 1, 80, 24).expect("handshake should succeed");
- assert_eq!(version, 1);
+ client_handshake(&mut stream, 2, 80, 24).expect("handshake should succeed");
+ assert_eq!(version, 2);
assert!(error.is_none(), "{:?}", error);
// Drain initial frames.
@@ -885,8 +885,8 @@ fn graceful_shutdown_sends_server_shutdown_to_client() {
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
let (version, error) =
- client_handshake(&mut stream, 1, 80, 24).expect("handshake should succeed");
- assert_eq!(version, 1);
+ client_handshake(&mut stream, 2, 80, 24).expect("handshake should succeed");
+ assert_eq!(version, 2);
assert!(error.is_none(), "{:?}", error);
// Drain initial frame(s).
@@ -983,8 +983,8 @@ fn client_receives_notify_on_agent_state_change() {
// Connect as a client and perform handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect");
let (version, error) =
- client_handshake(&mut stream, 1, 80, 24).expect("handshake should succeed");
- assert_eq!(version, 1);
+ client_handshake(&mut stream, 2, 80, 24).expect("handshake should succeed");
+ assert_eq!(version, 2);
assert!(error.is_none(), "{:?}", error);
// Drain initial frame(s).