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 c3291be  PROTON-2524 Fix intermittent test failure wait for expected 
disposition
c3291be is described below

commit c3291bea33eb3704beb8fc68fdfeda2936d23ed5
Author: Timothy Bish <tabish...@gmail.com>
AuthorDate: Mon Mar 28 10:10:10 2022 -0400

    PROTON-2524 Fix intermittent test failure wait for expected disposition
    
    Need to await the expectation so that the close of the connection
    doesn't end the test early.
---
 .../java/org/apache/qpid/protonj2/client/impl/StreamReceiverTest.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/StreamReceiverTest.java
 
b/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/StreamReceiverTest.java
index 196a624..b4a886a 100644
--- 
a/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/StreamReceiverTest.java
+++ 
b/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/StreamReceiverTest.java
@@ -2217,6 +2217,10 @@ class StreamReceiverTest extends 
ImperativeClientTestCase {
 
             assertArrayEquals(regeneratedPayload, receivedBody);
 
+            bodyStream.close();
+
+            peer.waitForScriptToComplete(5, TimeUnit.SECONDS);
+
             peer.expectDetach().respond();
             peer.expectEnd().respond();
             peer.expectClose().respond();

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to