Skip to content

Commit

Permalink
Fix ProgressTrackerTimeTests.testEntirePlayback
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Dec 10, 2024
1 parent bebe19b commit 7335984
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ final class ProgressTrackerTimeTests: 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: [
.invalid,
.zero,
Expand All @@ -62,8 +62,7 @@ final class ProgressTrackerTimeTests: TestCase {
],
from: progressTracker.changePublisher(at: \.time)
.removeDuplicates(),
to: beClose(within: 0.1),
during: .seconds(2)
to: beClose(within: 0.1)
) {
progressTracker.player = player
player.play()
Expand Down

0 comments on commit 7335984

Please sign in to comment.