roryqi commented on code in PR #10852:
URL: https://github.com/apache/gravitino/pull/10852#discussion_r3135971329


##########
clients/client-java/src/test/java/org/apache/gravitino/client/integration/test/authorization/TopicAuthorizationIT.java:
##########
@@ -245,9 +247,15 @@ public void testDropTopic() {
     TopicCatalog topicCatalog = 
client.loadMetalake(METALAKE).loadCatalog(CATALOG).asTopicCatalog();
     topicCatalog.dropTopic(NameIdentifier.of(SCHEMA, "topic1"));
     // check topics are dropped
-    NameIdentifier[] topicsList = 
topicCatalog.listTopics(Namespace.of(SCHEMA));
-    assertArrayEquals(new NameIdentifier[] {}, topicsList);
-    NameIdentifier[] topicsListNormalUser = 
topicCatalogNormalUser.listTopics(Namespace.of(SCHEMA));
-    assertArrayEquals(new NameIdentifier[] {}, topicsListNormalUser);
+    Awaitility.await()
+        .atMost(30, TimeUnit.SECONDS)
+        .untilAsserted(
+            () -> {
+              NameIdentifier[] topicsList = 
topicCatalog.listTopics(Namespace.of(SCHEMA));

Review Comment:
   Kafka topic deletion is asynchronous. Make this test stable.



-- 
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