mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 14:46:25 +00:00
FIX flaky test (Thread.sleep(10) sleeps sometimes only 9.5 ms)
This commit is contained in:
1 parent
0f01965a7b
commit
c1cdfb41f6
1 file changed
+2
-2
@@ -12,7 +12,7 @@ public class DTimedMetricTest {
|
||||
DTimedMetric metric = new DTimedMetric("addSinceNanos");
|
||||
|
||||
long start = System.nanoTime();
|
||||
Thread.sleep(10);
|
||||
Thread.sleep(11);
|
||||
|
||||
metric.addSinceNanos(start);
|
||||
|
||||
@@ -35,7 +35,7 @@ public class DTimedMetricTest {
|
||||
DTimedMetric metric = new DTimedMetric("addSinceNanos");
|
||||
|
||||
long start = System.nanoTime();
|
||||
Thread.sleep(10);
|
||||
Thread.sleep(11);
|
||||
|
||||
metric.addBatchSince(start, 5);
|
||||
|
||||
|
||||
Reference in new issue
Block a user