Skip to content

Commit

Permalink
Fix Flaky Nightly Tests (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM authored Aug 22, 2024
1 parent 3de37e6 commit 9f84290
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Date_PSQLCodableTests: XCTestCase {

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

func testDecodeRandomDate() {
Expand Down

0 comments on commit 9f84290

Please sign in to comment.