mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 11:29:29 +00:00
397168 backed of test timing
This commit is contained in:
parent
89d8972e74
commit
376114e794
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user