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 004a7eb commit b67f57aCopy full SHA for b67f57a
src/librustc_incremental/persist/fs.rs
@@ -902,9 +902,9 @@ fn test_all_except_most_recent() {
902
#[test]
903
fn test_timestamp_serialization() {
904
for i in 0 .. 1_000u64 {
905
- let time = UNIX_EPOCH + Duration::new(i * 3_434_578, (i as u32) * 239_000);
+ let time = UNIX_EPOCH + Duration::new(i * 1_434_578, (i as u32) * 239_000);
906
let s = timestamp_to_string(time);
907
- assert_eq!(time, string_to_timestamp(&s).unwrap());
+ assert_eq!(Ok(time), string_to_timestamp(&s));
908
}
909
910
0 commit comments