mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove extra test checks intended to debug flaky test.
Those test are no longer flaky since the test clock
was made deterministic.
The removed assertions were introduced in a4ad351fb1.
PiperOrigin-RevId: 380793961
This commit is contained in:
parent
d87fdaa370
commit
5e2197d82e
1 changed files with 1 additions and 8 deletions
|
|
@ -17,7 +17,6 @@
|
||||||
package com.google.android.exoplayer2.robolectric;
|
package com.google.android.exoplayer2.robolectric;
|
||||||
|
|
||||||
import static com.google.android.exoplayer2.robolectric.RobolectricUtil.runMainLooperUntil;
|
import static com.google.android.exoplayer2.robolectric.RobolectricUtil.runMainLooperUntil;
|
||||||
import static com.google.common.truth.Truth.assertThat;
|
|
||||||
|
|
||||||
import android.os.Looper;
|
import android.os.Looper;
|
||||||
import com.google.android.exoplayer2.ExoPlaybackException;
|
import com.google.android.exoplayer2.ExoPlaybackException;
|
||||||
|
|
@ -263,13 +262,7 @@ public class TestPlayerRunHelper {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
player.addAudioOffloadListener(listener);
|
player.addAudioOffloadListener(listener);
|
||||||
runMainLooperUntil(
|
runMainLooperUntil(receiverCallback::get);
|
||||||
() -> { // Make sure progress is being made, see [internal: b/170387438#comment2]
|
|
||||||
assertThat(player.getPlayerError()).isNull();
|
|
||||||
assertThat(player.getPlayWhenReady()).isTrue();
|
|
||||||
assertThat(player.getPlaybackState()).isAnyOf(Player.STATE_BUFFERING, Player.STATE_READY);
|
|
||||||
return receiverCallback.get();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue