You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2020/03/27 14:24:12 UTC

[qpid-jms] branch master updated: NO-JIRA: avoid race, prvevent causing spurious test failure

This is an automated email from the ASF dual-hosted git repository.

robbie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-jms.git


The following commit(s) were added to refs/heads/master by this push:
     new f2d6333  NO-JIRA: avoid race, prvevent causing spurious test failure
f2d6333 is described below

commit f2d6333dbd793758c7bf8381c9e525216dc178e3
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Fri Mar 27 14:23:18 2020 +0000

    NO-JIRA: avoid race, prvevent causing spurious test failure
---
 .../apache/qpid/jms/transports/netty/NettyTcpTransportTest.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/transports/netty/NettyTcpTransportTest.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/transports/netty/NettyTcpTransportTest.java
index 74ce189..80abf34 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/transports/netty/NettyTcpTransportTest.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/transports/netty/NettyTcpTransportTest.java
@@ -661,7 +661,12 @@ public class NettyTcpTransportTest extends QpidJmsTestCase {
                 }
             }, 10_000, 10));
 
-            assertEquals(1, testProxy.getSuccessCount());
+            assertTrue(Wait.waitFor(new Wait.Condition() {
+                @Override
+                public boolean isSatisfied() throws Exception {
+                    return testProxy.getSuccessCount() == 1;
+                }
+            }, 10_000, 10));
 
             transport.close();
 


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