aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-02 23:43:58 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-02 23:43:58 +0100
commitc9a33c080d39d4a2b269e3c8f166a708b6606da5 (patch)
treec498a7a2a5833f2c6f27d4ba97894747f9d454c0
parentf480ff0d3150f5cadb35ad40b270693b838ff486 (diff)
downloadaerogramme-c9a33c080d39d4a2b269e3c8f166a708b6606da5.tar.gz
aerogramme-c9a33c080d39d4a2b269e3c8f166a708b6606da5.zip
clean tests
-rw-r--r--tests/imap_features.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/imap_features.rs b/tests/imap_features.rs
index 79d740f..9e8d587 100644
--- a/tests/imap_features.rs
+++ b/tests/imap_features.rs
@@ -307,7 +307,6 @@ fn append_email(imap: &mut TcpStream, ref_mail: &[u8]) -> Result<()> {
// check it is stored successfully
imap.write(&b"49 fetch 2 rfc822.size\r\n"[..])?;
- println!("sent fetch size");
let read = read_lines(imap, &mut buffer, Some(&b"49 OK"[..]))?;
let expected = format!("* 2 FETCH (RFC822.SIZE {})", ref_mail.len());
let expbytes = expected.as_bytes();
@@ -381,7 +380,7 @@ fn read_lines<'a, F: Read>(
let mut nbytes = 0;
loop {
nbytes += reader.read(&mut buffer[nbytes..])?;
- println!("partial read: {}", std::str::from_utf8(&buffer[..nbytes])?);
+ //println!("partial read: {}", std::str::from_utf8(&buffer[..nbytes])?);
let pre_condition = match stop_marker {
None => true,
Some(mark) => buffer[..nbytes].windows(mark.len()).any(|w| w == mark),