diff --git a/app/instrumentation-tests/src/org/commcare/androidTests/AsyncRestoreTest.java b/app/instrumentation-tests/src/org/commcare/androidTests/AsyncRestoreTest.java index ae6ea88efc..7ccc201805 100644 --- a/app/instrumentation-tests/src/org/commcare/androidTests/AsyncRestoreTest.java +++ b/app/instrumentation-tests/src/org/commcare/androidTests/AsyncRestoreTest.java @@ -68,6 +68,7 @@ public void testRestoreOnLogin() { // Make sure user is present in the group. HQApi.addUserInGroup(userId, groupId); + InstrumentationUtility.sleep(30); installAppAndClearCache(); @@ -97,6 +98,7 @@ public void testRestoreOnSync() { // Make sure user is not present in the group. HQApi.removeUserFromGroup(userId, groupId); + InstrumentationUtility.sleep(30); installAppAndClearCache(); @@ -110,9 +112,9 @@ public void testRestoreOnSync() { // Confirm No Restore happened during login. assertFalse(AsyncRestoreHelperMock.isRetryCalled()); assertFalse(AsyncRestoreHelperMock.isServerProgressReportingStarted()); - // Add user to the group. HQApi.addUserInGroup(userId, groupId); + InstrumentationUtility.sleep(30); // Sync with server. onView(withText("Sync with Server"))