Skip to content

Commit

Permalink
Merge pull request #372 from philip-clarke/fix-integration-test-race-…
Browse files Browse the repository at this point in the history
…condition2

fix failing integration test
  • Loading branch information
jijisv authored Sep 6, 2017
2 parents e937f40 + 9742ed8 commit 846eb0b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ public void initialize() {
}
}).start();

try {
// allow zooKeeperServer enough time to initialize
Thread.sleep(1000);
} catch (InterruptedException e) {
}

provider = new CuratorDistributedLockServiceProvider("localhost:12181", "1000", "1", "/test");
}

Expand Down

0 comments on commit 846eb0b

Please sign in to comment.