From 07a30920e78c3631c3eeea232d5079626dc03eff Mon Sep 17 00:00:00 2001 From: elsirion Date: Fri, 29 Nov 2024 11:07:51 +0100 Subject: [PATCH] fix: add buffer against potential flakiness --- fedimint-client/src/oplog.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fedimint-client/src/oplog.rs b/fedimint-client/src/oplog.rs index 7b26c1629d3..3fa9d0482c5 100644 --- a/fedimint-client/src/oplog.rs +++ b/fedimint-client/src/oplog.rs @@ -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]), });