Skip to content

Commit

Permalink
test: delete_server_after="1" should cause immediate message deletion (
Browse files Browse the repository at this point in the history
  • Loading branch information
iequidoo committed Feb 8, 2024
1 parent ec9d104 commit 630d4e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ephemeral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,7 @@ mod tests {
(1030, now - 19 * HOUR, 0),
(2000, now - 18 * HOUR, now - HOUR),
(2020, now - 17 * HOUR, now + HOUR),
(3000, now + HOUR, 0),
] {
let message_id = id.to_string();
t.sql
Expand Down Expand Up @@ -1216,6 +1217,10 @@ mod tests {
0
);

t.set_config(Config::DeleteServerAfter, Some("1")).await?;
delete_expired_imap_messages(&t).await?;
test_marked_for_deletion(&t, 3000).await?;

Ok(())
}

Expand Down

0 comments on commit 630d4e7

Please sign in to comment.