Skip to content

Commit

Permalink
Fix testEntirePlayback
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Dec 10, 2024
1 parent 177f2f1 commit e675996
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e675996

Please sign in to comment.