fix: defer blocked deliveries, claim owner token

This commit is contained in:
2026-10-26 00:33:29 +01:00
parent 53892847f2
commit 0236a488fa
13 changed files with 528 additions and 80 deletions

View File

@@ -26,7 +26,10 @@ async fn removes_only_rows_older_than_the_retention_window() {
.unwrap();
use domain::ports::{Begin, ProcessedEventLedger};
assert_eq!(store.begin(&stale, "h").await.unwrap(), Begin::Run);
assert!(matches!(
store.begin(&stale, "h").await.unwrap(),
Begin::Run(_)
));
assert_eq!(store.begin(&fresh, "h").await.unwrap(), Begin::AlreadyDone);
}