Skip to content

Commit 846eb0b

Browse files
authored
Merge pull request aol#372 from philip-clarke/fix-integration-test-race-condition2
fix failing integration test
2 parents e937f40 + 9742ed8 commit 846eb0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

micro-curator/src/integration/java/com/aol/micro/server/curator/lock/IntegrationTest.java

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ public void initialize() {
4848
}
4949
}).start();
5050

51+
try {
52+
// allow zooKeeperServer enough time to initialize
53+
Thread.sleep(1000);
54+
} catch (InterruptedException e) {
55+
}
56+
5157
provider = new CuratorDistributedLockServiceProvider("localhost:12181", "1000", "1", "/test");
5258
}
5359

0 commit comments

Comments
 (0)