Skip to content

Commit

Permalink
Add thread.sleep(5s) in FlinkPscProducerITCase.testFlinkPscProducerFa…
Browse files Browse the repository at this point in the history
…ilBeforeNotify to allow for broker startup before deleting topic
  • Loading branch information
jeffxiang committed Dec 13, 2024
1 parent c7aa188 commit 70d83e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public void testFlinkPscProducerFailBeforeNotify() throws Exception {

assertExactlyOnceForTopicUri(createProperties(), topicUri, 0, Arrays.asList(42, 43));

Thread.sleep(5000); // wait for broker to start up before deleting topic
deleteTestTopic(topic);
checkProducerLeak();
}
Expand Down
2 changes: 1 addition & 1 deletion psc/src/test/resources/log4j2-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</Appenders>

<Loggers>
<AsyncRoot level="info" includeLocation="true">
<AsyncRoot level="error" includeLocation="true">
<AppenderRef ref="console"/>
</AsyncRoot>
</Loggers>
Expand Down

0 comments on commit 70d83e2

Please sign in to comment.