Skip to content

Commit 52efc90

Browse files
committed
Skips troublesome tests on non-macOS
1 parent fa84eb4 commit 52efc90

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/ApolloTests/Cache/StoreConcurrencyTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ class StoreConcurrencyTests: XCTestCase, CacheDependentTesting {
9797
}
9898

9999
func testConcurrentReadsInitiatedFromBackgroundTasks() async throws {
100+
#if !os(macOS)
101+
throw XCTSkip("Skipping \(#function) on non-macOS platform.")
102+
103+
#else
100104
try await store.publish(records: [
101105
"QUERY_ROOT": ["hero": CacheReference("2001")],
102106
"2001": [
@@ -134,6 +138,7 @@ class StoreConcurrencyTests: XCTestCase, CacheDependentTesting {
134138
}
135139

136140
await fulfillment(of: [allReadsCompletedExpectation], timeout: defaultWaitTimeout)
141+
#endif
137142
}
138143

139144
func testMultipleUpdatesInitiatedFromMainThread() async throws {

0 commit comments

Comments
 (0)