Skip to content

Commit

Permalink
re-run flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Dec 3, 2021
1 parent e688593 commit 76555db
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.google.android.material.slider.Slider
import com.adevinta.android.barista.assertion.BaristaEnabledAssertions.assertDisabled
import com.adevinta.android.barista.assertion.BaristaEnabledAssertions.assertEnabled
import com.adevinta.android.barista.assertion.BaristaVisibilityAssertions.assertContains
import com.schibsted.spain.barista.rule.flaky.AllowFlaky
import junit.framework.TestCase.assertEquals
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.runBlocking
Expand Down Expand Up @@ -38,6 +39,7 @@ class SettingsActivityTest {
}

@Test
@AllowFlaky(attempts = 3)
fun displaysVersion() {
testRule.start()
assertContains(BuildConfig.VERSION_CODE.toString())
Expand All @@ -51,6 +53,7 @@ class SettingsActivityTest {
}

@Test
@AllowFlaky(attempts = 3)
fun clearButtonDisabledWithData() {
runBlocking {
storedMessageDao.insert(StoredMessageFactory.build())
Expand Down

0 comments on commit 76555db

Please sign in to comment.