apupier commented on code in PR #24447:
URL: https://github.com/apache/camel/pull/24447#discussion_r3527693411
##########
components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringNettyTest.java:
##########
@@ -66,12 +69,12 @@ public void testSendingRawUDP() throws IOException,
InterruptedException {
DatagramPacket packet = new DatagramPacket(data, data.length,
address, serverPort.getPort());
socket.send(packet);
- Thread.sleep(100);
}
} finally {
socket.close();
}
- MockEndpoint.assertIsSatisfied(context);
+ await().atMost(5, TimeUnit.SECONDS)
+ .untilAsserted(() -> MockEndpoint.assertIsSatisfied(context));
Review Comment:
there is a specific method MockEndpoint.assertIsSatisfied(context, timeout,
tiemunit)
--
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]