Merge pull request #11430 from nextcloud/chore/contacts-backup-flaky

Add RetryTestRule to ContactsBackupIT
This commit is contained in:
Andy Scherzinger 2023-07-11 23:29:31 +02:00 committed by GitHub
commit cec8aaa70d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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