mirror of
https://github.com/chatmail/core.git
synced 2026-05-15 12:56:30 +03:00
test: delete_server_after="1" should cause immediate message deletion (#5201)
This commit is contained in:
@@ -1131,6 +1131,7 @@ mod tests {
|
|||||||
(1030, now - 19 * HOUR, 0),
|
(1030, now - 19 * HOUR, 0),
|
||||||
(2000, now - 18 * HOUR, now - HOUR),
|
(2000, now - 18 * HOUR, now - HOUR),
|
||||||
(2020, now - 17 * HOUR, now + HOUR),
|
(2020, now - 17 * HOUR, now + HOUR),
|
||||||
|
(3000, now + HOUR, 0),
|
||||||
] {
|
] {
|
||||||
let message_id = id.to_string();
|
let message_id = id.to_string();
|
||||||
t.sql
|
t.sql
|
||||||
@@ -1216,6 +1217,10 @@ mod tests {
|
|||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
t.set_config(Config::DeleteServerAfter, Some("1")).await?;
|
||||||
|
delete_expired_imap_messages(&t).await?;
|
||||||
|
test_marked_for_deletion(&t, 3000).await?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user