Skip to content

Commit 3e50bf5

Browse files
authored
Merge pull request #44 from morckx/actually-check-initial-playback-state
Actually check initial playback state in initialPlaybackStateTest
2 parents 8b04234 + 0f163b9 commit 3e50bf5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mediacontroller/src/main/java/com/example/android/mediacontroller/testing/MediaAppTestSuite.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Array) {
113113
Looper.prepare()
114114
try {
115115
for(i in 0 until numIter) {
116-
for (test in testList) {
116+
for (test in testList.sortedBy { it.id }) {
117117
resetSingleResults()
118118
onStartTest()
119119

mediacontroller/src/main/java/com/example/android/mediacontroller/testing/TestDescriptor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class TestDescriptor {
296296
}
297297

298298
val initialPlaybackStateTest = TestOptionDetails(
299-
15,
299+
-1, // this test must be run first
300300
context.getString(R.string.playback_state_test_title),
301301
context.getString(R.string.playback_state_test_desc),
302302
TestResult.NONE,

0 commit comments

Comments
 (0)