DomGarguilo commented on code in PR #6426:
URL: https://github.com/apache/accumulo/pull/6426#discussion_r3415117802


##########
test/src/main/java/org/apache/accumulo/test/conf/ResourceGroupConfigIT.java:
##########
@@ -274,8 +274,11 @@ public void testDuplicateCreatesRemovals()
       assertEquals(rgid, rgs2.iterator().next());
       client.resourceGroupOperations().create(rgid); // creating again 
succeeds doing nothing
       client.resourceGroupOperations().remove(rgid);
-      rgs = client.resourceGroupOperations().list();
-      assertEquals(1, rgs.size());
+
+      Wait.waitFor(() -> {
+        final Set<ResourceGroupId> finalrgs = 
client.resourceGroupOperations().list();
+        return finalrgs.size() == 1 && 
finalrgs.contains(ResourceGroupId.DEFAULT);
+      });
       assertEquals(ResourceGroupId.DEFAULT, rgs.iterator().next());

Review Comment:
   ```suggestion
   ```
   Just need to remove this stale assert now that we check the same condition 
within the Wait block



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to