diff --git a/Tests/ApiVideoPlayerTests/IntegrationTests/AVPlayerExtensionsTests.swift b/Tests/ApiVideoPlayerTests/IntegrationTests/AVPlayerExtensionsTests.swift index fe670643..3915b3a0 100644 --- a/Tests/ApiVideoPlayerTests/IntegrationTests/AVPlayerExtensionsTests.swift +++ b/Tests/ApiVideoPlayerTests/IntegrationTests/AVPlayerExtensionsTests.swift @@ -10,8 +10,9 @@ final class AVPlayerExtensions: XCTestCase { let ready = observer.readyExpectation let avPlayer = AVPlayer(playerItem: nil) - avPlayer.replaceCurrentItem(withHls: VideoOptions(videoId: VideoId.validVideoId, videoType: .vod)) avPlayer.currentItem?.addObserver(observer, forKeyPath: "status", options: .new, context: nil) + avPlayer.replaceCurrentItem(withHls: VideoOptions(videoId: VideoId.validVideoId, videoType: .vod)) + avPlayer.play() wait(for: [ready], timeout: 10)