Skip to content

Commit 0330bcf

Browse files
committed
updating test to deal with cranky CI that isn't on macOS 12
1 parent e2af5e3 commit 0330bcf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Tests/SwiftVizTests/ScaleFactoryTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ class ScaleFactoryTests: XCTestCase {
5050
XCTAssertEqual(scale1.domainLower, 6)
5151
XCTAssertEqual(scale3.domainLower, 0)
5252
}
53-
5453

55-
@available(macOS 12, *)
5654
func testDateScaleFactoryMethods() throws {
57-
let low: Date = Date.now
55+
let low: Date = Date(timeIntervalSince1970: 123456789)
5856
let high: Date = low.addingTimeInterval(5 * 60)
5957

6058
let scale1 = LinearScale.create(low, high)

0 commit comments

Comments
 (0)