Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit 38a477d

Browse files
committed
test: Adjust seek to live position to get the last seekableTimeRanges
1 parent d3bf457 commit 38a477d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: Tests/Clappr_Tests/Classes/Plugin/Playback/AVFoundationPlaybackTests.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1347,8 +1347,9 @@ class AVFoundationPlaybackTests: QuickSpec {
13471347
}
13481348

13491349
playback.seekToLivePosition()
1350+
let endPosition = playback.seekableTimeRanges.last?.timeRangeValue.end.seconds
13501351

1351-
expect(updatedPosition).to(equal(Double.infinity))
1352+
expect(updatedPosition).to(equal(endPosition))
13521353
}
13531354
}
13541355

0 commit comments

Comments
 (0)