Skip to content

Commit 565a7be

Browse files
authored
Fix build of unit tests on Xcode 16 (#330)
1 parent 7b1897c commit 565a7be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/DependenciesTests/TestTraitTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,23 @@
88
struct TestTraitTests {
99
@Dependency(\.uuid) var uuid
1010

11+
@available(iOS 16, macOS 13, tvOS 16, watchOS 9, *)
1112
@Test func statefulDependency1() async throws {
1213
for index in 0...100 {
1314
#expect(uuid() == UUID(index))
1415
try await Task.sleep(for: .milliseconds(1))
1516
}
1617
}
1718

19+
@available(iOS 16, macOS 13, tvOS 16, watchOS 9, *)
1820
@Test func statefulDependency2() async throws {
1921
for index in 0...100 {
2022
#expect(uuid() == UUID(index))
2123
try await Task.sleep(for: .milliseconds(1))
2224
}
2325
}
2426

27+
@available(iOS 16, macOS 13, tvOS 16, watchOS 9, *)
2528
@Test func statefulDependency3() async throws {
2629
for index in 0...100 {
2730
#expect(uuid() == UUID(index))

0 commit comments

Comments
 (0)