Merge pull request #3462 from davidhewitt/dh/chrono-panics

ci: adjust tests to avoid chrono panics
This commit is contained in:
David Hewitt 2023-09-21 08:02:49 +00:00 committed by GitHub
commit d7cf4270f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -597,7 +597,7 @@ mod tests {
})
};
check_utc("fold", 2014, 5, 6, 7, 8, 9, 1_999_999, 999_999, true);
check_utc("fold", 2014, 5, 6, 7, 8, 59, 1_999_999, 999_999, true);
check_utc("non fold", 2014, 5, 6, 7, 8, 9, 999_999, 999_999, false);
let check_fixed_offset =
@ -638,7 +638,7 @@ mod tests {
})
};
check_fixed_offset("fold", 2014, 5, 6, 7, 8, 9, 1_999_999, 999_999, true);
check_fixed_offset("fold", 2014, 5, 6, 7, 8, 59, 1_999_999, 999_999, true);
check_fixed_offset("non fold", 2014, 5, 6, 7, 8, 9, 999_999, 999_999, false);
}
@ -676,7 +676,7 @@ mod tests {
})
};
check_utc("fold", 2014, 5, 6, 7, 8, 9, 1_999_999, 999_999, true);
check_utc("fold", 2014, 5, 6, 7, 8, 59, 1_999_999, 999_999, true);
check_utc("non fold", 2014, 5, 6, 7, 8, 9, 999_999, 999_999, false);
let check_fixed_offset = |year, month, day, hour, minute, second, ms| {
@ -812,7 +812,7 @@ mod tests {
})
};
check_time("fold", 3, 5, 7, 1_999_999, 999_999, true);
check_time("fold", 3, 5, 59, 1_999_999, 999_999, true);
check_time("non fold", 3, 5, 7, 999_999, 999_999, false);
}
@ -836,7 +836,7 @@ mod tests {
})
};
check_time("fold", 3, 5, 7, 1_999_999, 999_999, true);
check_time("fold", 3, 5, 59, 1_999_999, 999_999, true);
check_time("non fold", 3, 5, 7, 999_999, 999_999, false);
}