Skip to content

Commit

Permalink
Fix failing test due to Duration precision change
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Aug 1, 2023
1 parent 361c2db commit 369b1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/interval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn from_std_duration() {
100
);

let paired = Interval::try_from(Duration::from_secs_f32(2.8)).unwrap();
let paired = Interval::try_from(Duration::new(2, 800_000_000)).unwrap();
assert_eq!(paired.seconds(), 2);
assert_eq!(paired.microseconds(), 800_000);
assert_eq!(paired.milliseconds(), 800);
Expand Down

0 comments on commit 369b1c8

Please sign in to comment.