Skip to content

Commit

Permalink
apply swift 6 warning fix to flaky iOS tests (player-ui#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
hborawski authored and mercillo committed Oct 30, 2023
1 parent fca3933 commit 00939af
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 00939af

Please sign in to comment.