incr. comp.: Fix test_timestamp_serialization so it does not overflow on some 32bit systems.
This commit is contained in:
parent
004a7eb127
commit
b67f57afdd
1 changed files with 2 additions and 2 deletions
|
@ -902,9 +902,9 @@ fn test_all_except_most_recent() {
|
|||
#[test]
|
||||
fn test_timestamp_serialization() {
|
||||
for i in 0 .. 1_000u64 {
|
||||
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);
|
||||
let s = timestamp_to_string(time);
|
||||
assert_eq!(time, string_to_timestamp(&s).unwrap());
|
||||
assert_eq!(Ok(time), string_to_timestamp(&s));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue