mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Two NIOFileSystem tests are still a bit flaky after (mostly) fixing them in https://github.com/apple/swift-nio/pull/2842. ``` Test Case 'FileHandleTests.testSetLastAccessAndLastDataModificationTimesToNil' started at 2024-09-06 10:12:54.006 /__w/swift-nio/swift-nio/Tests/NIOFileSystemIntegrationTests/FileHandleTests.swift:1265: error: FileHandleTests.testSetLastAccessAndLastDataModificationTimesToNil : XCTAssertEqual failed: ("1725617573.0") is not equal to ("1725617574.006952") +/- ("1.0") - Test Case 'FileHandleTests.testSetLastAccessAndLastDataModificationTimesToNil' failed (0.001 seconds) ``` This is because we were dropping the nanoseconds when comparing the timestamps, which means that sometimes the two timestamps were off by just over a second. This change includes the nanoseconds to avoid this problem.