ci: adjust tests to avoid chrono panics

This commit is contained in:
David Hewitt 2023-09-21 08:34:45 +01:00
parent 8f4a26a66e
commit 1ec3c5a4fd
1 changed files with 5 additions and 5 deletions

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); check_utc("non fold", 2014, 5, 6, 7, 8, 9, 999_999, 999_999, false);
let check_fixed_offset = 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); 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); 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| { 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); 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); check_time("non fold", 3, 5, 7, 999_999, 999_999, false);
} }