Skip to content

Commit

Permalink
fix: add buffer against potential flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
elsirion committed Dec 2, 2024
1 parent c4602e3 commit 07a3092
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fedimint-client/src/oplog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ impl OperationLog {
const EPOCH_DURATION: Duration = Duration::from_secs(60 * 60 * 24 * 7);

let start_after_key = last_seen.unwrap_or_else(|| ChronologicalOperationLogKey {
creation_time: now(),
// We don't expect any operations from the future to exist, since SystemTime isn't
// monotone and CI can be overloaded at times we add a small buffer to avoid flakiness
// in tests.
creation_time: now() + Duration::from_secs(30),
operation_id: OperationId([0; 32]),
});

Expand Down

0 comments on commit 07a3092

Please sign in to comment.