Merge branch 'master' of ssh://git.eclipse.org/gitroot/jetty/org.eclipse.jetty.project

This commit is contained in:
Jan Bartel 2013-02-01 11:28:30 +11:00
commit 6711abe1d7
1 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@ import java.util.concurrent.TimeUnit;
import org.eclipse.jetty.toolchain.test.AdvancedRunner;
import org.eclipse.jetty.toolchain.test.annotation.Slow;
import org.hamcrest.Matchers;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@ -66,9 +67,9 @@ public class DateCacheTest
else
misses++;
TimeUnit.MILLISECONDS.sleep(50);
TimeUnit.MILLISECONDS.sleep(100);
now=System.currentTimeMillis();
}
Assert.assertTrue(hits / 10 > misses);
Assert.assertThat(hits,Matchers.greaterThan(misses));
}
}