Skip to content

Commit

Permalink
fix: updated timestamp comparison for test_get_eligible_unprocessed_c…
Browse files Browse the repository at this point in the history
…ommitments
  • Loading branch information
0xKitsune committed Sep 19, 2023
1 parent 8beeabc commit 4fc0ac8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit 4fc0ac8

Please sign in to comment.