Skip to content

Commit

Permalink
Make the test be a bit more lenient, due to race conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
broneill committed Feb 24, 2025
1 parent 8650213 commit f975fc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/java/org/cojen/dirmi/DataTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ public synchronized void awaitConnected() throws InterruptedException {
assertEquals(4, main.same().id());

restoreCheck: {
long expect = MainServer.id.get();
AssertionError error = null;
for (int i=1; i<=10; i++) {
try {
assertEquals(expect, next.id());
assertTrue(next.id() > 4);
break restoreCheck;
} catch (AssertionError e) {
error = e;
Expand Down

0 comments on commit f975fc0

Please sign in to comment.