diff options
Diffstat (limited to 'tests/multi_client.rs')
| -rw-r--r-- | tests/multi_client.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/multi_client.rs b/tests/multi_client.rs index f65538b4..3294c98b 100644 --- a/tests/multi_client.rs +++ b/tests/multi_client.rs @@ -495,6 +495,7 @@ fn client_handshake( &encode_varint_u32(version), &encode_varint_u16(cols), &encode_varint_u16(rows), + &encode_varint_u32(0), // RenderEncoding::SemanticFrame ], ); stream @@ -519,6 +520,9 @@ fn client_handshake( let (_server_version, consumed) = decode_varint_u32(&payload, offset)?; offset += consumed; + let (_encoding, consumed) = decode_varint_u32(&payload, offset)?; + offset += consumed; + if offset >= payload.len() { return Err("payload too short for Welcome.error option tag".into()); } @@ -542,7 +546,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, 3, cols, rows).expect("handshake should succeed"); + client_handshake(&mut stream, 4, cols, rows).expect("handshake should succeed"); stream } |
