Skip to content

Commit 36ad206

Browse files
committed
Fix GraphHostTests/setTime(_:) on Ubuntu
1 parent d0b7997 commit 36ad206

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/OpenSwiftUITests/Core/Graph/GraphHostTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ struct GraphHostTests {
1616

1717
graphHost.setTime(Time.infinity)
1818
#expect(graphHost.data.time.seconds == Time.infinity.seconds)
19-
19+
20+
#if canImport(QuartzCore)
2021
let timeNow = Time.now
2122
graphHost.setTime(timeNow)
2223
#expect(graphHost.data.time.seconds == timeNow.seconds)
24+
#endif
2325
}
2426
}

0 commit comments

Comments
 (0)