From 4da250ad17e6a60e00ca880ca5500515e3737f5b Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 13 May 2026 14:51:47 +0300 Subject: test: update protocol fixtures --- tests/multi_client.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/multi_client.rs') diff --git a/tests/multi_client.rs b/tests/multi_client.rs index b74e527c..704b511e 100644 --- a/tests/multi_client.rs +++ b/tests/multi_client.rs @@ -496,7 +496,9 @@ fn client_handshake( &encode_varint_u32(version), &encode_varint_u16(cols), &encode_varint_u16(rows), - &encode_varint_u32(0), // RenderEncoding::SemanticFrame + &encode_varint_u32(8), // cell_width_px + &encode_varint_u32(16), // cell_height_px + &encode_varint_u32(0), // RenderEncoding::SemanticFrame ], ); stream @@ -547,7 +549,7 @@ fn client_handshake( fn connect_raw_client(client_socket: &Path, cols: u16, rows: u16) -> UnixStream { let mut stream = UnixStream::connect(client_socket).expect("should connect to client socket"); - client_handshake(&mut stream, 4, cols, rows).expect("handshake should succeed"); + client_handshake(&mut stream, 5, cols, rows).expect("handshake should succeed"); stream } @@ -578,6 +580,7 @@ struct FrameWire { height: u16, cursor: Option, hyperlinks: Vec, + graphics: Vec, } #[allow(dead_code)] @@ -709,7 +712,7 @@ fn frame_contains_text(frame: &FrameWire, needle: &str) -> bool { full_text.push('\n'); } - let _ = frame.height; + let _ = (frame.height, frame.graphics.len()); if let Some(cursor) = frame.cursor.as_ref() { let _ = (cursor.x, cursor.y, cursor.visible); } -- cgit v1.2.3