summaryrefslogtreecommitdiff
path: root/qpid/java/client
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-08-31 04:21:11 +0000
committerRafael H. Schloming <rhs@apache.org>2007-08-31 04:21:11 +0000
commit7f0e4933935fc825812a7ee0ec4277c4ac5e7fcd (patch)
tree06d07e6a62c0e391fbdc8f11411b79bfbc230b60 /qpid/java/client
parent13c8d4be86044a76133e175ae80261d179d3ca24 (diff)
downloadqpid-python-7f0e4933935fc825812a7ee0ec4277c4ac5e7fcd.tar.gz
fixed a race condition in ConnectionStartTest
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@571367 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client')
-rw-r--r--qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java b/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java
index ae8e2cfbda..42a48b10bc 100644
--- a/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java
+++ b/qpid/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());
}