Skip to content

Commit

Permalink
fix flaky AdminApiTest (apache#11039)
Browse files Browse the repository at this point in the history
  • Loading branch information
hangc0276 authored Jun 23, 2021
1 parent dac74fd commit ef4a275
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,9 @@ public void testDeleteTenantForcefully() throws Exception {

// delete tenant forcefully
admin.tenants().deleteTenant(tenant, true);
assertFalse(admin.tenants().getTenants().contains(tenant));
Awaitility.await().untilAsserted(() -> {
assertFalse(admin.tenants().getTenants().contains(tenant));
});

admin.tenants().createTenant(tenant,
new TenantInfoImpl(Sets.newHashSet("role1", "role2"), Sets.newHashSet("test")));
Expand Down

0 comments on commit ef4a275

Please sign in to comment.