Skip to content

Commit

Permalink
Disable flaky tests.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 347807539
  • Loading branch information
tonihei authored and christosts committed Dec 17, 2020
1 parent db12fae commit e95e2e0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
Expand Down Expand Up @@ -7535,6 +7536,7 @@ protected boolean shouldProcessBuffer(long bufferTimeUs, long playbackPositionUs
.isEqualTo(rendererStreamOffsetsUs.get(0) + periodDurationUs);
}

@Ignore // See [internal: b/175773664]
@Test
public void mediaItemOfSources_correctInTimelineWindows() throws Exception {
SilenceMediaSource.Factory factory =
Expand Down Expand Up @@ -7747,6 +7749,7 @@ public void seekTo_sameWindow_doesNotNotifyMediaItemTransition() throws Exceptio
Player.MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED);
}

@Ignore // See [internal: b/175773664]
@Test
public void repeat_notifiesMediaItemTransition() throws Exception {
SilenceMediaSource.Factory factory =
Expand Down Expand Up @@ -8108,6 +8111,7 @@ public void enableOffloadSchedulingWhilePlaying_isToggled_isReported() throws Ex
assertThat(runUntilReceiveOffloadSchedulingEnabledNewState(player)).isFalse();
}

@Ignore // See [internal: b/170387438]
@Test
public void enableOffloadSchedulingWhileSleepingForOffload_isDisabled_isReported()
throws Exception {
Expand All @@ -8124,6 +8128,8 @@ public void enableOffloadSchedulingWhileSleepingForOffload_isDisabled_isReported

assertThat(runUntilReceiveOffloadSchedulingEnabledNewState(player)).isFalse();
}

@Ignore // See [internal: b/170387438]
@Test
public void enableOffloadScheduling_isEnable_playerSleeps() throws Exception {
FakeSleepRenderer sleepRenderer = new FakeSleepRenderer(C.TRACK_TYPE_AUDIO);
Expand All @@ -8140,6 +8146,7 @@ public void enableOffloadScheduling_isEnable_playerSleeps() throws Exception {
assertThat(player.experimentalIsSleepingForOffload()).isTrue();
}

@Ignore // See [internal: b/170387438]
@Test
public void
experimentalEnableOffloadSchedulingWhileSleepingForOffload_isDisabled_renderingResumes()
Expand All @@ -8160,6 +8167,7 @@ public void enableOffloadScheduling_isEnable_playerSleeps() throws Exception {
runUntilPlaybackState(player, Player.STATE_ENDED);
}

@Ignore // See [internal: b/170387438]
@Test
public void wakeupListenerWhileSleepingForOffload_isWokenUp_renderingResumes() throws Exception {
FakeSleepRenderer sleepRenderer = new FakeSleepRenderer(C.TRACK_TYPE_AUDIO).sleepOnNextRender();
Expand Down

0 comments on commit e95e2e0

Please sign in to comment.