Skip to content

Commit

Permalink
fix(test): fix wait for async method
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Jul 24, 2024
1 parent e4bf008 commit 98f6ed8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ final class ApiVideoPlayerControllerIntegrationTests: XCTestCase {
delegates: [mockDelegate]
)

self.wait(for: [ready], timeout: 10)
await fulfillment(of: [ready], timeout: 10)
controller.play()
self.wait(for: [play], timeout: 2)
self.wait(for: [expectationError], timeout: 15)
await fulfillment(of: [play], timeout: 2)
await fulfillment(of: [expectationError], timeout: 15)
}
}

0 comments on commit 98f6ed8

Please sign in to comment.