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 c363ce15 NO-JIRA Fix a race in a test that leads to flaky runs in CI
c363ce15 is described below
commit c363ce1567b448659b88f137dcdd4182f8b718a9
Author: Timothy Bish <[email protected]>
AuthorDate: Mon Mar 27 14:06:09 2023 -0400
NO-JIRA Fix a race in a test that leads to flaky runs in CI
---
.../java/org/apache/qpid/protonj2/client/impl/StreamReceiverTest.java | 2 ++
1 file changed, 2 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 9fd3faa2..e3521b05 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
@@ -644,6 +644,8 @@ class StreamReceiverTest extends ImperativeClientTestCase {
Wait.assertTrue("Should eventually be marked as completed",
delivery::completed);
+ peer.waitForScriptToComplete(5, TimeUnit.SECONDS);
+
peer.expectDetach().respond();
peer.expectEnd().respond();
peer.expectClose().respond();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]