Skip to content

Commit

Permalink
test: mark custom scheduler tests as flaky in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Feb 1, 2024
1 parent a3b545c commit a2c745b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AnkiDroid/src/androidTest/java/com/ichi2/anki/ReviewerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import com.ichi2.anki.testutil.GrantStoragePermission.storagePermission
import com.ichi2.anki.testutil.grantPermissions
import com.ichi2.anki.testutil.notificationPermission
import com.ichi2.libanki.Collection
import com.ichi2.testutils.Flaky
import com.ichi2.testutils.OS
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.equalTo
import org.junit.Rule
Expand All @@ -55,6 +57,7 @@ class ReviewerTest : InstrumentedTest() {
val runtimePermissionRule = grantPermissions(storagePermission, notificationPermission)

@Test
@Flaky(os = OS.ALL, "Fails on CI with timing issues frequently")
fun testCustomSchedulerWithCustomData() {
col.cardStateCustomizer =
"""
Expand Down Expand Up @@ -91,6 +94,7 @@ class ReviewerTest : InstrumentedTest() {
}

@Test
@Flaky(os = OS.ALL, "Fails on CI with timing issues frequently")
fun testCustomSchedulerWithRuntimeError() {
// Issue 15035 - runtime errors weren't handled
col.cardStateCustomizer = "states.this_is_not_defined.normal.review = 12;"
Expand Down

0 comments on commit a2c745b

Please sign in to comment.