From 4fc0ac8c44df79efd9b037d5f8f2e9c6a0cc4d50 Mon Sep 17 00:00:00 2001 From: 0xKitsune <0xKitsune@protonmail.com> Date: Tue, 19 Sep 2023 12:21:18 -0400 Subject: [PATCH] fix: updated timestamp comparison for test_get_eligible_unprocessed_commitments --- src/database/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/database/mod.rs b/src/database/mod.rs index fd0d3988..cba83032 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -1042,9 +1042,10 @@ mod test { assert_eq!(unprocessed_commitments.len(), 1); assert_eq!(unprocessed_commitments[0].commitment, commitment_0); - assert_eq!( - unprocessed_commitments[0].eligibility_timestamp.timestamp(), - eligibility_timestamp_0.timestamp() + assert!( + unprocessed_commitments[0].eligibility_timestamp.timestamp() + - eligibility_timestamp_0.timestamp() + <= 1 ); Ok(())