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:
Timothy A. Bish 2012-06-11 19:43:52 +00:00
parent cfd28536b9
commit 4a7f870593
1 changed files with 2 additions and 2 deletions

View File

@ -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;