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
This commit is contained in:
Jesse McConnell 2009-06-11 22:11:53 +00:00
parent 3821eebb43
commit ab9b24f9d3
1 changed files with 6 additions and 13 deletions

View File

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