Skip to content

Commit 9f84290

Browse files
authored
Fix Flaky Nightly Tests (vapor#503)
1 parent 3de37e6 commit 9f84290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/PostgresNIOTests/New/Data/Date+PSQLCodableTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Date_PSQLCodableTests: XCTestCase {
1414

1515
var result: Date?
1616
XCTAssertNoThrow(result = try Date(from: &buffer, type: .timestamptz, format: .binary, context: .default))
17-
XCTAssertEqual(value, result)
17+
XCTAssertEqual(value.timeIntervalSince1970, result?.timeIntervalSince1970 ?? 0, accuracy: 0.001)
1818
}
1919

2020
func testDecodeRandomDate() {

0 commit comments

Comments
 (0)