Skip to content

Commit

Permalink
Fix build of unit tests on Xcode 16 (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrtsa authored Jan 14, 2025
1 parent 7b1897c commit 565a7be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/DependenciesTests/TestTraitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,23 @@
struct TestTraitTests {
@Dependency(\.uuid) var uuid

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

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

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

0 comments on commit 565a7be

Please sign in to comment.