Merge pull request #3462 from davidhewitt/dh/chrono-panics
ci: adjust tests to avoid chrono panics
This commit is contained in:
commit
d7cf4270f3
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue