test: update timestamp_sent in pop_sent_msg_opt()

Otherwise "sent" messages in tests have 0 timestamp.
This commit is contained in:
link2xt
2025-09-25 18:26:11 +00:00
committed by l
parent 09dabda4a3
commit e6a3daacb3

View File

@@ -575,6 +575,13 @@ impl TestContext {
update_msg_state(&self.ctx, msg_id, MessageState::OutDelivered)
.await
.expect("failed to update message state");
self.sql
.execute(
"UPDATE msgs SET timestamp_sent=? WHERE id=?",
(time(), msg_id),
)
.await
.expect("Failed to update timestamp_sent");
}
let payload_headers = payload.split("\r\n\r\n").next().unwrap().lines();