Fix flaky testEmptyTimeline again.
Waiting for the timeline change didn't work correctly because the timeline was already equal to Timeline.EMPTY (due to the masking). Now waiting explicitly for the empty Timeline exposed by the source. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177749292
This commit is contained in:
parent
80fff0b7ce
commit
03b0d9d46c
@ -54,7 +54,7 @@ public final class ExoPlayerTest extends TestCase {
|
||||
* error.
|
||||
*/
|
||||
public void testPlayEmptyTimeline() throws Exception {
|
||||
Timeline timeline = Timeline.EMPTY;
|
||||
Timeline timeline = new FakeTimeline(/* windowCount= */ 0);
|
||||
FakeRenderer renderer = new FakeRenderer();
|
||||
// TODO(b/69665207): Without waiting for the timeline update, this test is flaky as the timeline
|
||||
// update happens after the transition to STATE_ENDED and the test runner may already have been
|
||||
|
Loading…
x
Reference in New Issue
Block a user