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 1cc9f2b  NO-JIRA Attempt to fix a test timing issus that fails CI
1cc9f2b is described below

commit 1cc9f2ba0a7a316455f116ff0cc6c901b43860ce
Author: Timothy Bish <[email protected]>
AuthorDate: Tue Aug 24 18:19:54 2021 -0400

    NO-JIRA Attempt to fix a test timing issus that fails CI
---
 .../test/java/org/apache/qpid/protonj2/client/impl/ReceiverTest.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/ReceiverTest.java
 
b/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/ReceiverTest.java
index 1c2636a..a90f027 100644
--- 
a/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/ReceiverTest.java
+++ 
b/protonj2-client/src/test/java/org/apache/qpid/protonj2/client/impl/ReceiverTest.java
@@ -600,7 +600,8 @@ public class ReceiverTest extends ImperativeClientTestCase {
             Matcher<Boolean> drainMatcher = anyOf(equalTo(false), nullValue());
             peer.expectFlow().withDrain(drainMatcher).withLinkCredit(credit);
 
-            receiver.addCredit(credit);
+            // Ensure we get the attach response with the initial delivery 
count.
+            receiver.openFuture().get().addCredit(credit);
 
             peer.waitForScriptToComplete(5, TimeUnit.SECONDS);
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to