From a618282fc1cad83c0000eadc1fa46f08dcebc3ce Mon Sep 17 00:00:00 2001 From: Rupert Smith Date: Wed, 26 Sep 2007 11:51:14 +0000 Subject: Added timeout to perftests, wait limit set to higher value to stop threads thashing. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@579614 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/qpid/requestreply/PingPongProducer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java') diff --git a/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java b/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java index 8247a7cec0..1e01f6bc8e 100644 --- a/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java +++ b/java/perftests/src/main/java/org/apache/qpid/requestreply/PingPongProducer.java @@ -1148,7 +1148,7 @@ public class PingPongProducer implements Runnable /*, MessageListener*/, Excepti // The maximum number of waits before the test gives up and fails. This has been chosen to correspond with // the test timeout. - int waitLimit = (int) (TIMEOUT_DEFAULT / 100); + int waitLimit = (int) (TIMEOUT_DEFAULT / 10000); while ((_maxPendingSize > 0)) { @@ -1167,7 +1167,7 @@ public class PingPongProducer implements Runnable /*, MessageListener*/, Excepti // Wait on the send pause barrier for the limit to be re-established. try { - _sendPauseMonitor.wait(100); + _sendPauseMonitor.wait(10000); numWaits++; } catch (InterruptedException e) -- cgit v1.2.1