Browse Source

Add RetryTestRule to ContactsBackupIT

Flaky

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Álvaro Brey 2 years ago
parent
commit
97b02cc562

+ 4 - 0
app/src/androidTest/java/com/nextcloud/client/jobs/ContactsBackupIT.kt

@@ -25,6 +25,7 @@ import android.Manifest
 import androidx.test.rule.GrantPermissionRule
 import androidx.work.WorkManager
 import com.nextcloud.client.core.ClockImpl
+import com.nextcloud.test.RetryTestRule
 import com.owncloud.android.AbstractIT
 import com.owncloud.android.AbstractOnServerIT
 import com.owncloud.android.R
@@ -50,6 +51,9 @@ class ContactsBackupIT : AbstractOnServerIT() {
     @get:Rule
     val readContactsRule = GrantPermissionRule.grant(Manifest.permission.READ_CONTACTS)
 
+    @get:Rule
+    val retryTestRule = RetryTestRule() // flaky test
+
     private val vcard: String = "vcard.vcf"
 
     @Test