Skip to content

Commit 78bac94

Browse files
committed
f - Instant is not strictly increasing
1 parent aadb017 commit 78bac94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/routing/scorer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,14 +397,14 @@ mod tests {
397397

398398
#[cfg(not(feature = "no-std"))]
399399
#[test]
400-
fn time_is_strictly_increasing() {
400+
fn time_is_monotonically_increasing() {
401401
use std::time::Instant;
402402

403403
let now = Instant::now();
404404
let elapsed = now.elapsed();
405405
let later = Instant::now();
406406

407-
assert!(elapsed > Duration::from_secs(0));
408-
assert!(later - elapsed > now);
407+
assert!(elapsed >= Duration::from_secs(0));
408+
assert!(later - elapsed >= now);
409409
}
410410
}

0 commit comments

Comments
 (0)