Skip to content

Commit

Permalink
test: RemoteRegistryTest: Allow delayed removal of RMI files
Browse files Browse the repository at this point in the history
It may take a while until RMI files have been removed.
  • Loading branch information
kohlschuetter committed Jul 27, 2023
1 parent f78b401 commit 5f0e30a
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,18 @@ protected int shutdownAfterSecs() {
} catch (Exception e) {
throw e;
}
assertEquals(0, countRMIFiles(socketDir));

int count;
int loops = 10;
do {
count = countRMIFiles(socketDir);
if (count == 0) {
break;
}
Thread.sleep(100);
} while (loops-- > 0);

assertEquals(0, count);
}

private void tryToSayHello(SpawnedRegistryAccess sra) throws Exception {
Expand Down

0 comments on commit 5f0e30a

Please sign in to comment.