Browse Source

Merge pull request #6168 from nextcloud/reAddRetryRule

re-add retry rule
Tobias Kaminsky 5 years ago
parent
commit
189b812845
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/androidTest/java/com/owncloud/android/AbstractIT.java

+ 3 - 1
src/androidTest/java/com/owncloud/android/AbstractIT.java

@@ -11,6 +11,7 @@ import android.net.Uri;
 import android.os.Bundle;
 
 import com.facebook.testing.screenshot.Screenshot;
+import com.nextcloud.client.RetryTestRule;
 import com.nextcloud.client.account.UserAccountManager;
 import com.nextcloud.client.account.UserAccountManagerImpl;
 import com.nextcloud.client.device.BatteryStatus;
@@ -43,6 +44,7 @@ import org.jetbrains.annotations.NotNull;
 import org.junit.After;
 import org.junit.Assert;
 import org.junit.BeforeClass;
+import org.junit.Rule;
 
 import java.io.File;
 import java.io.FileWriter;
@@ -68,7 +70,7 @@ import static org.junit.Assert.assertTrue;
 
 //@RunWith(AndroidJUnit4.class)
 public abstract class AbstractIT {
-    // @Rule public RetryTestRule retryTestRule = new RetryTestRule();
+    @Rule public RetryTestRule retryTestRule = new RetryTestRule();
 
     protected static OwnCloudClient client;
     protected static Account account;