FIX flaky test (Thread.sleep(10) sleeps sometimes only 9.5 ms)

This commit is contained in:
Roland Praml
2022-02-02 11:12:43 +01:00
parent 0f01965a7b
commit c1cdfb41f6
@@ -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);