Repository navigation
Test the controller with calls in the orders a schedule produces - #49
Merged
Merged
Conversation
Covers a playlist swapped mid-play, stop then start (including late player reports about the stopped asset), a staged asset replaced before its play, and a seeded random stream of 600 calls and player reports per seed, checked after every step against the rules events follow: one asset on screen, Ended only for it, each playback started once and currentState matching the screen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
GaplessControllerSequenceTest, which drivesGaplessControlleragainst a fake player in the orders a host's schedule produces when it changes under it. No library code changes; the tests found no bugs.Fixed orders:
stop()thenstart(): the new asset shows after its preload window, the staged asset is forgotten, astop()during a cut waiting for readiness cancels it, late shown, preload error and playback error reports about the stopped asset are ignored, and 20 rapid start and stop pairs end with the laststart()on screen.play(): playing the replaced one loads it again, playing the replacement cuts at once, staging the same asset twice uses the latest copy, and a late preload error for the replaced asset doesn't touch its replacement.Random stream: 25 seeds of 600 steps mixing API calls with player reports (shown, including late ones, ready, preload error, playback error, preload missed, time passing). After every step it checks that each played item was prepared and played once,
Startedonly names a played item, never while another is on screen and never twice,Endedonly names what is on screen, andcurrentStatematches the screen. Afterwardsstart()andplay()still have to work. A failure names the seed and the last 12 steps. Across the seeds it produces about 450Started, 230PlaybackError, 160Endedand 150PreloadError, and runs in about 1.5 seconds.The tests treat
stop(), and aPlaybackErrorfor the asset on screen, as taking it off screen without anEnded, which is the current behaviour.