Remove flakey test
Bug: 156302951 Test: atest tests/src/com/android/systemui/media/SeekBarViewModelTest.kt Change-Id: I3d2e24f6586c2862d5a5459943cd0a12d01578de
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
package com.android.systemui.media
|
||||
|
||||
import android.graphics.Color
|
||||
import android.media.MediaMetadata
|
||||
import android.media.session.MediaController
|
||||
import android.media.session.PlaybackState
|
||||
@@ -354,25 +353,6 @@ public class SeekBarViewModelTest : SysuiTestCase() {
|
||||
assertThat(fakeExecutor.numPending()).isEqualTo(1)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun taskUpdatesProgress() {
|
||||
// GIVEN that the PlaybackState contins the initial position
|
||||
val initialPosition = 0L
|
||||
val state = PlaybackState.Builder().run {
|
||||
setState(PlaybackState.STATE_PLAYING, initialPosition, 1f)
|
||||
build()
|
||||
}
|
||||
whenever(mockController.getPlaybackState()).thenReturn(state)
|
||||
viewModel.updateController(mockController)
|
||||
// WHEN the task runs
|
||||
with(fakeExecutor) {
|
||||
advanceClockToNext()
|
||||
runAllReady()
|
||||
}
|
||||
// THEN elapsed time has increased
|
||||
assertThat(viewModel.progress.value!!.elapsedTime).isGreaterThan(initialPosition.toInt())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun startListeningQueuesPollTask() {
|
||||
// GIVEN not listening
|
||||
|
||||
Reference in New Issue
Block a user