Skip to content

Commit

Permalink
Try to avoid IllegalStateException: Failed to lock offset 0 of .../da…
Browse files Browse the repository at this point in the history
…emon/registry.bin within 20.0 seconds #102
  • Loading branch information
ppalaga committed Nov 18, 2020
1 parent cf055b3 commit 11404a0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ void upgrade() throws IOException, InterruptedException {
final Client cl = clientFactory.newClient(parameters.cd(parameters.getTestDir().resolve(artifactDir)));
final TestClientOutput output = new TestClientOutput();
cl.execute(output, "clean", "install", "-e").assertSuccess();

final DaemonInfo d = registry.getAll().get(0);
/* Wait, till the instance becomes idle */
registry.awaitIdle(d.getUid());
registry.killAll();
}
Assertions.assertThat(registry.getAll().size()).isEqualTo(0);
Expand Down

0 comments on commit 11404a0

Please sign in to comment.