diff options
author | Rafael H. Schloming <rhs@apache.org> | 2007-08-31 04:21:11 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2007-08-31 04:21:11 +0000 |
commit | 9767a3b93b4d2f016cfa622b5866acfac1d0ec1f (patch) | |
tree | 0d8591bc127da754c41338a131ba2f7478058949 | |
parent | 84eff672307de3816b0372ae89ad164a162c83e2 (diff) | |
download | qpid-python-9767a3b93b4d2f016cfa622b5866acfac1d0ec1f.tar.gz |
fixed a race condition in ConnectionStartTest
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@571367 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java b/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java index ae8e2cfbda..42a48b10bc 100644 --- a/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java +++ b/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java @@ -96,7 +96,7 @@ public class ConnectionStartTest extends TestCase // should really not be called before _connection start assertTrue("There should not be messages waiting for the consumer", _consumer.receiveNoWait() == null); _connection.start(); - assertTrue("There should be messages waiting for the consumer", _consumer.receiveNoWait() == null); + assertTrue("There should be messages waiting for the consumer", _consumer.receive(10*1000) == null); assertTrue("Connection should be started", _connection.started()); } |