Skip to content

Commit 53cf69d

Browse files
committed
Suppresses lifecycle_replace_after_pause on API 21
Flaky, but only on such ancient AVDs. Closes #559
1 parent b4565c2 commit 53cf69d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

workflow-ui/container-android/src/androidTest/java/com/squareup/workflow1/ui/backstack/test/BackstackContainerTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package com.squareup.workflow1.ui.backstack.test
22

3+
import android.os.Build
34
import android.view.View
45
import androidx.lifecycle.Lifecycle.State.CREATED
56
import androidx.lifecycle.Lifecycle.State.RESUMED
67
import androidx.lifecycle.Lifecycle.State.STARTED
78
import androidx.test.ext.junit.rules.ActivityScenarioRule
9+
import androidx.test.filters.SdkSuppress
810
import com.google.common.truth.Truth.assertThat
911
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
1012
import com.squareup.workflow1.ui.backstack.test.fixtures.BackStackContainerLifecycleActivity
@@ -339,6 +341,8 @@ internal class BackstackContainerTest {
339341
}
340342
}
341343

344+
// https://github.com/square/workflow-kotlin/issues/559
345+
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.M)
342346
@Test fun lifecycle_replace_after_pause() {
343347
assertThat(scenario.state).isEqualTo(RESUMED)
344348
scenario.onActivity {

0 commit comments

Comments
 (0)