Skip to content

Commit

Permalink
Adds wait after making HQ API calls to make sure HQ registers those c…
Browse files Browse the repository at this point in the history
…hanges well before we do login
  • Loading branch information
shubham1g5 committed Sep 18, 2023
1 parent e83699d commit d31cb8f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public void testRestoreOnLogin() {

// Make sure user is present in the group.
HQApi.addUserInGroup(userId, groupId);
InstrumentationUtility.sleep(5);

installAppAndClearCache();

Expand Down Expand Up @@ -97,6 +98,7 @@ public void testRestoreOnSync() {

// Make sure user is not present in the group.
HQApi.removeUserFromGroup(userId, groupId);
InstrumentationUtility.sleep(5);

installAppAndClearCache();

Expand All @@ -113,6 +115,7 @@ public void testRestoreOnSync() {

// Add user to the group.
HQApi.addUserInGroup(userId, groupId);
InstrumentationUtility.sleep(5);

// Sync with server.
onView(withText("Sync with Server"))
Expand Down

0 comments on commit d31cb8f

Please sign in to comment.