From 28b1f4f14dffc5dcd5152ce931f6c50b17c134db Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 20 Feb 2024 11:42:51 +0100 Subject: Unsollicited responses on APPEND --- tests/common/fragments.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/common') diff --git a/tests/common/fragments.rs b/tests/common/fragments.rs index a10d4e0..606af2b 100644 --- a/tests/common/fragments.rs +++ b/tests/common/fragments.rs @@ -384,8 +384,7 @@ pub fn append(imap: &mut TcpStream, content: Email) -> Result { // write our stuff imap.write(ref_mail)?; imap.write(&b"\r\n"[..])?; - let read = read_lines(imap, &mut buffer, None)?; - assert_eq!(&read[..5], &b"47 OK"[..]); + let read = read_lines(imap, &mut buffer, Some(&b"47 OK"[..]))?; let srv_msg = std::str::from_utf8(read)?; Ok(srv_msg.to_string()) -- cgit v1.2.3