You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ta...@apache.org on 2021/08/24 22:20:05 UTC
[qpid-protonj2] branch main updated: NO-JIRA Attempt to fix a test
timing issus that fails CI
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 <ta...@gmail.com>
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org