Skip to content

Commit

Permalink
Fix flaky PinotTenantRestletResourceTest (apache#12026)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie-Jiang authored Nov 17, 2023
1 parent c1fdb66 commit 244c947
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,14 @@ public void testTableListForTenant()
assertEquals(tables.get(0).asText(), offlineTableName2);

// Remove the tables and brokers
DEFAULT_INSTANCE.waitForEVToAppear(OFFLINE_TABLE_NAME);
DEFAULT_INSTANCE.waitForEVToAppear(offlineTableName2);
DEFAULT_INSTANCE.dropOfflineTable(RAW_TABLE_NAME);
DEFAULT_INSTANCE.deleteSchema(RAW_TABLE_NAME);
DEFAULT_INSTANCE.dropOfflineTable(rawTableName2);
DEFAULT_INSTANCE.deleteSchema(rawTableName2);
DEFAULT_INSTANCE.waitForEVToDisappear(OFFLINE_TABLE_NAME);
DEFAULT_INSTANCE.waitForEVToDisappear(offlineTableName2);
sendDeleteRequest(_urlBuilder.forInstance("Broker_1.2.3.4_1234"));
sendDeleteRequest(_urlBuilder.forInstance("Broker_2.3.4.5_2345"));
}
Expand Down Expand Up @@ -210,6 +214,7 @@ public void testToggleTenantState()
// Delete table and schema
DEFAULT_INSTANCE.dropOfflineTable(RAW_TABLE_NAME);
DEFAULT_INSTANCE.deleteSchema(RAW_TABLE_NAME);
DEFAULT_INSTANCE.waitForEVToDisappear(OFFLINE_TABLE_NAME);
}

@AfterClass
Expand Down

0 comments on commit 244c947

Please sign in to comment.