From 47ec0b38e9bf3a2fddced7e87de8e63ab4fc1790 Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Wed, 24 Jul 2024 17:53:53 +0200 Subject: [PATCH] test --- .../IntegrationTests/AVPlayerExtensionsTests.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)