Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fix test flake on Safari waiting for ended event
The test "StreamingEngine VOD plays" would fail ~10% of the time on Safari 14 with "Timeout waiting for event ended". When this happened, I found that the "ended" flag was set, and currentTime exceeded duration, but the "ended" event had not fired. This changes the waitForEnd() method in our tests to be more flexible, and to tolerate an "ended" event being missed. It will now consider media to be "ended" on the "ended" event, or when the "ended" flag is seen, or when currentTime equals or exceeds duration. With this change, the tests passed 50 times in a row. Change-Id: I6ce7dcc38e6ed43c73bfbd91ef96957df46cc70b
- Loading branch information