Skip to content

Commit c023c8d

Browse files
committed
Fix GraphHostTests on Ubuntu
1 parent 36ad206 commit c023c8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/OpenSwiftUITests/Core/Graph/GraphHostTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Testing
88
struct GraphHostTests {
99
@Test
1010
func setTimeTest() {
11+
#if canImport(Darwin)
1112
let graphHost = GraphHost(data: .init())
1213
#expect(graphHost.data.time.seconds == 0.0)
1314

@@ -17,10 +18,10 @@ struct GraphHostTests {
1718
graphHost.setTime(Time.infinity)
1819
#expect(graphHost.data.time.seconds == Time.infinity.seconds)
1920

20-
#if canImport(QuartzCore)
2121
let timeNow = Time.now
2222
graphHost.setTime(timeNow)
2323
#expect(graphHost.data.time.seconds == timeNow.seconds)
2424
#endif
2525
}
2626
}
27+

0 commit comments

Comments
 (0)