Skip to content

Commit 98f6ed8

Browse files
committed
fix(test): fix wait for async method
1 parent e4bf008 commit 98f6ed8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/ApiVideoPlayerTests/IntegrationTests/ApiVideoPlayerControllerIntegrationTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ final class ApiVideoPlayerControllerIntegrationTests: XCTestCase {
137137
delegates: [mockDelegate]
138138
)
139139

140-
self.wait(for: [ready], timeout: 10)
140+
await fulfillment(of: [ready], timeout: 10)
141141
controller.play()
142-
self.wait(for: [play], timeout: 2)
143-
self.wait(for: [expectationError], timeout: 15)
142+
await fulfillment(of: [play], timeout: 2)
143+
await fulfillment(of: [expectationError], timeout: 15)
144144
}
145145
}

0 commit comments

Comments
 (0)