diff --git a/src/client.rs b/src/client.rs index c0c0904..eb8e281 100644 --- a/src/client.rs +++ b/src/client.rs @@ -461,6 +461,16 @@ mod tests { assert!(client.stream.written_buf == b"a1 CHECK\r\n".to_vec(), "Invalid check command"); } + #[test] + fn noop() { + // TODO Make sure the response was read correctly + let response = b"a1 OK NOOP completed\r\n".to_vec(); + let mock_stream = MockStream::new(response); + let mut client = create_client_with_mock_stream(mock_stream); + client.noop().unwrap(); + assert!(client.stream.written_buf == b"a1 NOOP\r\n".to_vec(), "Invalid noop command"); + } + #[test] fn close() { // TODO Make sure the response was read correctly