From 4a7f8705932ca8f511af79065d41ad76962eff9e Mon Sep 17 00:00:00 2001 From: "Timothy A. Bish" Date: Mon, 11 Jun 2012 19:43:52 +0000 Subject: [PATCH] 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 --- .../activemq/transport/vm/VMTransportThreadSafeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/transport/vm/VMTransportThreadSafeTest.java b/activemq-core/src/test/java/org/apache/activemq/transport/vm/VMTransportThreadSafeTest.java index aa09958bd9..2dd34282f9 100644 --- a/activemq-core/src/test/java/org/apache/activemq/transport/vm/VMTransportThreadSafeTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/transport/vm/VMTransportThreadSafeTest.java @@ -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;