Skip to content

Commit

Permalink
apply swift 6 warning fix to flaky iOS tests (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
hborawski authored Oct 27, 2023
1 parent cbc2cfa commit bc98558
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ManagedPlayerViewModelTests: XCTestCase {

viewModel.result = .success(state)
try await Task.sleep(nanoseconds: 1_000_000_000)
wait(for: [completed], timeout: 2)
await fulfillment(of: [completed], timeout: 2)
}

func testViewModelSuccessMultiFlow() async throws {
Expand Down Expand Up @@ -223,7 +223,7 @@ class ManagedPlayerViewModelTests: XCTestCase {

viewModel.result = .failure(.jsConversionFailure)

wait(for: [completed], timeout: 2)
await fulfillment(of: [completed], timeout: 2)

cancellable.cancel()
}
Expand Down

0 comments on commit bc98558

Please sign in to comment.