mirror of https://github.com/apache/activemq.git
Test can fail on slower machines, give it a bit more time and improve the assert output.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1348983 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cfd28536b9
commit
4a7f870593
|
@ -487,7 +487,7 @@ public class VMTransportThreadSafeTest {
|
|||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
Thread.sleep(1000);
|
||||
remote.stop();
|
||||
} catch (Exception e) {
|
||||
}
|
||||
|
@ -498,7 +498,7 @@ public class VMTransportThreadSafeTest {
|
|||
|
||||
t.start();
|
||||
|
||||
assertTrue(Wait.waitFor(new Wait.Condition() {
|
||||
assertTrue("Remote should receive: " + expect + ", commands but got: " + remoteReceived.size(), Wait.waitFor(new Wait.Condition() {
|
||||
@Override
|
||||
public boolean isSatisified() throws Exception {
|
||||
return remoteReceived.size() >= expect;
|
||||
|
|
Loading…
Reference in New Issue