From 64763b535612a4088894428d31de554d531cb560 Mon Sep 17 00:00:00 2001 From: Shubham Goyal Date: Mon, 18 Sep 2023 13:57:16 -0500 Subject: [PATCH] 5 sec is not cutting it --- .../src/org/commcare/androidTests/AsyncRestoreTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/instrumentation-tests/src/org/commcare/androidTests/AsyncRestoreTest.java b/app/instrumentation-tests/src/org/commcare/androidTests/AsyncRestoreTest.java index dd9ce1ca8b..7ccc201805 100644 --- a/app/instrumentation-tests/src/org/commcare/androidTests/AsyncRestoreTest.java +++ b/app/instrumentation-tests/src/org/commcare/androidTests/AsyncRestoreTest.java @@ -68,7 +68,7 @@ public void testRestoreOnLogin() { // Make sure user is present in the group. HQApi.addUserInGroup(userId, groupId); - InstrumentationUtility.sleep(5); + InstrumentationUtility.sleep(30); installAppAndClearCache(); @@ -98,7 +98,7 @@ public void testRestoreOnSync() { // Make sure user is not present in the group. HQApi.removeUserFromGroup(userId, groupId); - InstrumentationUtility.sleep(5); + InstrumentationUtility.sleep(30); installAppAndClearCache(); @@ -112,10 +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(5); + InstrumentationUtility.sleep(30); // Sync with server. onView(withText("Sync with Server"))