aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-02-20 11:42:51 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-02-20 11:42:51 +0100
commit28b1f4f14dffc5dcd5152ce931f6c50b17c134db (patch)
treed76bb54c460fee03555f9dfb23c46de0ac19a5c2 /tests
parent4aa31ba8b5d9ac17a0d969f0b02eb9d317591667 (diff)
downloadaerogramme-28b1f4f14dffc5dcd5152ce931f6c50b17c134db.tar.gz
aerogramme-28b1f4f14dffc5dcd5152ce931f6c50b17c134db.zip
Unsollicited responses on APPEND
Diffstat (limited to 'tests')
-rw-r--r--tests/behavior.rs2
-rw-r--r--tests/common/fragments.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/behavior.rs b/tests/behavior.rs
index 7fdd553..13baf0e 100644
--- a/tests/behavior.rs
+++ b/tests/behavior.rs
@@ -225,7 +225,7 @@ fn rfc4551_imapext_condstore() {
FetchKind::Rfc822Size,
FetchMod::ChangedSince(2),
)?;
- assert!(fetch_res.contains("* 1 FETCH (RFC822.SIZE 84 MODSEQ (3))"));
+ assert!(fetch_res.contains("* 1 FETCH (RFC822.SIZE 81 MODSEQ (3))"));
assert!(!fetch_res.contains("* 2 FETCH"));
assert_eq!(store_res.lines().count(), 2);
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<String> {
// 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())