From ab9b24f9d3147d35cba32d8b16b70b79399172f0 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Thu, 11 Jun 2009 22:11:53 +0000 Subject: [PATCH] clean out extra sych's in test case git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@378 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../jetty/util/thread/TimeoutTest.java | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/thread/TimeoutTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/thread/TimeoutTest.java index 0ecb825e65c..9b47705a4da 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/thread/TimeoutTest.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/thread/TimeoutTest.java @@ -177,21 +177,15 @@ public class TimeoutTest extends TestCase public void run() { // count how many threads were started (should == LOOP) - synchronized(count) - { - count.incrementAndGet( 0 ); - } + count.incrementAndGet( 0 ); // create a task for this thread Timeout.Task task = new Timeout.Task() { public void expired() { - // count the number of expires - synchronized(count) - { - count.incrementAndGet( 2 ); - } + // count the number of expires + count.incrementAndGet( 2 ); } }; @@ -214,10 +208,9 @@ public class TimeoutTest extends TestCase if (loop++==once) { // THIS loop is the one time we wait 1000ms - synchronized(count) - { - count.incrementAndGet( 1 ); - } + + count.incrementAndGet( 1 ); + delay=200; wait=1000; }