Skip to content

Commit

Permalink
Relax tests failing on second boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Jan 4, 2025
1 parent 99fd2de commit 6b98e1a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,16 @@ public void testDualPeriod () throws Exception {

long elapsed = Duration.between(start, Instant.now()).toMillis();
assertTrue (
elapsed <= 1000L,
elapsed <= 500L,
"100 initial transactions should take more than about one second but took " + elapsed
);
for (int i=0; i<100; i++)
tc.control();

elapsed = Duration.between(start, Instant.now()).toMillis();
assertTrue (
elapsed >= 5000L,
"100 additional transactions should take more than five seconds but took " + elapsed
elapsed >= 4000L,
"100 additional transactions should take more than aprox five seconds but took " + elapsed
);
}
@Test
Expand Down

0 comments on commit 6b98e1a

Please sign in to comment.