CI: keep test vectors byte-exact on Windows, short agent paths on macOS

Windows checkouts converted LF vectors to CRLF; SystemTime there has
100 ns resolution. macOS's long $TMPDIR pushed the agent socket past
SUN_LEN.
This commit is contained in:
Andy Dixon
2026-10-13 12:42:23 +01:00
parent e8f21f68a6
commit 3347efe418
3 changed files with 12 additions and 3 deletions
+3 -2
View File
@@ -526,12 +526,13 @@ mod tests {
);
assert_eq!(Instant::parse_rfc3339("2023-02-29T00:00:00Z"), None);
assert!(Instant::parse_rfc3339("2024-02-29T00:00:00Z").is_some());
let neg = Instant::from_system(std::time::UNIX_EPOCH - Duration::new(0, 1));
// 100 ns: Windows' SystemTime resolution.
let neg = Instant::from_system(std::time::UNIX_EPOCH - Duration::new(0, 100));
assert_eq!(
neg,
Instant {
secs: -1,
nanos: 999_999_999
nanos: 999_999_900
}
);
assert_eq!(Instant::from_system(neg.to_system()), neg);