Skip to content

Commit

Permalink
Update API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Jun 29, 2023
1 parent e687257 commit 0c80621
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
name: Build for CodeQL & Swift 5.7
uses: ./.github/workflows/xcodebuild-or-fastlane.yml
with:
runsonlabels: '["macos-12"]'
runsonlabels: '["macos-13"]'
xcodeversion: 14.2.0
scheme: Spezi-Package
test: false
buildandtestuitests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ final class DataStorageProviderTests: XCTestCase {
}
)

#if swift(>=5.8)
await fulfillment(of: [expectation], timeout: 1)
#else
wait(for: [expectation], timeout: 1)
#endif

XCTAssertEqual(count, 4)
}

Expand Down
4 changes: 4 additions & 0 deletions Tests/SpeziTests/StandardTests/StandardTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ final class StandardTests: XCTestCase {
)
_ = await standardInjectionTestApplicationDelegate.spezi

#if swift(>=5.8)
await fulfillment(of: [expectation], timeout: 0.01)
#else
wait(for: [expectation], timeout: 0.01)
#endif
}

func testInjectionPrecondition() throws {
Expand Down

0 comments on commit 0c80621

Please sign in to comment.