LiJie20190102 commented on code in PR #10130:
URL: https://github.com/apache/seatunnel/pull/10130#discussion_r2587132559


##########
seatunnel-e2e/seatunnel-connector-v2-e2e/connector-databend-e2e/src/test/java/org/apache/seatunnel/e2e/connector/databend/DatabendCDCSinkIT.java:
##########
@@ -75,9 +75,26 @@ public void testDatabendSinkCDC(TestContainer container) 
throws Exception {
                 container.executeJob("/databend/fake_to_databend_cdc.conf");
         Assertions.assertEquals(0, execResult.getExitCode(), 
execResult.getStderr());
 
-        // Wait for the merge operation to complete
-        // Increased wait time to ensure merge operations finish
-        Thread.sleep(10000);
+        Awaitility.await()
+                .atMost(120, TimeUnit.SECONDS)
+                .pollInterval(1, TimeUnit.SECONDS)
+                .ignoreExceptions()
+                .untilAsserted(
+                        () -> {
+                            try (Statement stmt = connection.createStatement();

Review Comment:
   LGTM



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