From e6759966632466f151d827d71df94b281dee19a8 Mon Sep 17 00:00:00 2001 From: Walid Kayhal <3347810+waliid@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:31:21 +0100 Subject: [PATCH] Fix testEntirePlayback --- .../ProgressTracker/ProgressTrackerProgressTests.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tests/PlayerTests/ProgressTracker/ProgressTrackerProgressTests.swift b/Tests/PlayerTests/ProgressTracker/ProgressTrackerProgressTests.swift index 1592cb2..929406d 100644 --- a/Tests/PlayerTests/ProgressTracker/ProgressTrackerProgressTests.swift +++ b/Tests/PlayerTests/ProgressTracker/ProgressTrackerProgressTests.swift @@ -50,12 +50,11 @@ final class ProgressTrackerProgressTests: TestCase { let progressTracker = ProgressTracker(interval: CMTime(value: 1, timescale: 4)) let item = PlayerItem.simple(url: Stream.shortOnDemand.url) let player = Player(item: item) - expectPublished( + expectAtLeastPublished( values: [0, 0.25, 0.5, 0.75, 1, 0], from: progressTracker.changePublisher(at: \.progress) .removeDuplicates(), - to: beClose(within: 0.2), - during: .seconds(2) + to: beClose(within: 0.1) ) { progressTracker.player = player player.play()