fix: per-handler claim lease in ledger, nats max_deliver, pin handler names
This commit is contained in:
@@ -10,11 +10,13 @@ async fn removes_only_rows_older_than_the_retention_window() {
|
||||
store.seed_processed_event(
|
||||
&stale,
|
||||
"h",
|
||||
true,
|
||||
now - chrono::Duration::days(PROCESSED_EVENTS_RETENTION_DAYS + 1),
|
||||
);
|
||||
store.seed_processed_event(
|
||||
&fresh,
|
||||
"h",
|
||||
true,
|
||||
now - chrono::Duration::days(PROCESSED_EVENTS_RETENTION_DAYS - 1),
|
||||
);
|
||||
|
||||
@@ -23,9 +25,9 @@ async fn removes_only_rows_older_than_the_retention_window() {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
use domain::ports::ProcessedEventLedger;
|
||||
assert!(!store.has_processed(&stale, "h").await.unwrap());
|
||||
assert!(store.has_processed(&fresh, "h").await.unwrap());
|
||||
use domain::ports::{Begin, ProcessedEventLedger};
|
||||
assert_eq!(store.begin(&stale, "h").await.unwrap(), Begin::Run);
|
||||
assert_eq!(store.begin(&fresh, "h").await.unwrap(), Begin::AlreadyDone);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user