We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aadb017 commit 78bac94Copy full SHA for 78bac94
lightning/src/routing/scorer.rs
@@ -397,14 +397,14 @@ mod tests {
397
398
#[cfg(not(feature = "no-std"))]
399
#[test]
400
- fn time_is_strictly_increasing() {
+ fn time_is_monotonically_increasing() {
401
use std::time::Instant;
402
403
let now = Instant::now();
404
let elapsed = now.elapsed();
405
let later = Instant::now();
406
407
- assert!(elapsed > Duration::from_secs(0));
408
- assert!(later - elapsed > now);
+ assert!(elapsed >= Duration::from_secs(0));
+ assert!(later - elapsed >= now);
409
}
410
0 commit comments