Commit 312caf35 authored by Rajiv Prabhakar's avatar Rajiv Prabhakar
Browse files

v1.14.3: flaky test deflaked

parent f53d294e
Pipeline #14994666 passed with stage
in 1 minute and 50 seconds
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<groupId>com.rajivprab</groupId> <groupId>com.rajivprab</groupId>
<artifactId>cava</artifactId> <artifactId>cava</artifactId>
<version>1.14.2</version> <version>1.14.3</version>
<name>Cava: Clean Java</name> <name>Cava: Clean Java</name>
<description>A library that enables users to write minimal, clean and simple Java</description> <description>A library that enables users to write minimal, clean and simple Java</description>
......
...@@ -202,8 +202,8 @@ public class ThreadUtilcTest extends TestBase { ...@@ -202,8 +202,8 @@ public class ThreadUtilcTest extends TestBase {
long end = System.nanoTime(); long end = System.nanoTime();
Duration duration = Duration.ofNanos(end - start); Duration duration = Duration.ofNanos(end - start);
Truth.assertThat(duration).isAtLeast(runTime); Truth.assertThat(duration).isAtLeast(runTime.multipliedBy(98).dividedBy(100));
Truth.assertThat(duration).isLessThan(runTime.multipliedBy(11).dividedBy(10)); Truth.assertThat(duration).isLessThan(runTime.multipliedBy(110).dividedBy(100));
} }
private static FutureTask<Integer> runSleepTask(Duration sleep) { private static FutureTask<Integer> runSleepTask(Duration sleep) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment