This is an automated email from the ASF dual-hosted git repository. tabish pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-protonj2.git
The following commit(s) were added to refs/heads/main by this push: new 5ec581e8 PROTON-2541 Fix test assertion that can fail on race in frame arrival 5ec581e8 is described below commit 5ec581e8e0c21dfcbc6635e2de8d092d158786d5 Author: Timothy Bish <tabish...@gmail.com> AuthorDate: Fri May 6 14:48:31 2022 -0400 PROTON-2541 Fix test assertion that can fail on race in frame arrival --- .../java/org/apache/qpid/protonj2/client/impl/StreamSenderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/StreamSenderTest.java b/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/StreamSenderTest.java index 89969162..f1e3aae3 100644 --- a/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/StreamSenderTest.java +++ b/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/StreamSenderTest.java @@ -1659,7 +1659,7 @@ public class StreamSenderTest extends ImperativeClientTestCase { peer.expectClose().respond(); assertNotNull(message.tracker()); - assertFalse(message.tracker().settlementFuture().isDone()); + Wait.assertTrue(() -> message.tracker().settlementFuture().isDone()); assertTrue(message.tracker().settlementFuture().get().settled()); sender.closeAsync().get(10, TimeUnit.SECONDS); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org