Author: rhs
Date: Thu Aug 30 21:21:11 2007
New Revision: 571367
URL: http://svn.apache.org/viewvc?rev=571367&view=rev
Log:
fixed a race condition in ConnectionStartTest
Modified:
incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java
Modified:
incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java?rev=571367&r1=571366&r2=571367&view=diff
==============================================================================
---
incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java
(original)
+++
incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionStartTest.java
Thu Aug 30 21:21:11 2007
@@ -96,7 +96,7 @@
// 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());
}