Skip to content

Commit 0c88797

Browse files
authored
Update StoreTests.swift
1 parent 800209c commit 0c88797

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/ComposableArchitectureTests/StoreTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,8 +1177,10 @@ final class StoreTests: BaseTCATestCase {
11771177

11781178
@MainActor
11791179
func testPublisherAsyncSequence() async {
1180-
let store = Store<Void, Void>(initialState: ()) {}
1181-
_ = await store.publisher.values.first { @Sendable _ in true }
1180+
if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
1181+
let store = Store<Void, Void>(initialState: ()) {}
1182+
_ = await store.publisher.values.first { @Sendable _ in true }
1183+
}
11821184
}
11831185

11841186
@MainActor

0 commit comments

Comments
 (0)