Skip to content

Commit

Permalink
fix testcase compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jun 27, 2020
1 parent ed56b0f commit ad61aeb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void testHaWithZk() throws Exception {

@Test
public void testAddOneNode() throws Exception {
CountDownLatch cdl = new CountDownLatch(1);
final CountDownLatch cdl = new CountDownLatch(1);
ZookeeperNodeListener listener = new ZookeeperNodeListener();
listener.setZkConnectString(server.getConnectString());
listener.setPath(PATH);
Expand Down Expand Up @@ -132,8 +132,8 @@ public void testRemoveOneNode() throws Exception {
ZookeeperNodeRegister register = registerNodeAndReturnRegister();
Thread.sleep(2000); // Wait for the Node to be created.

CountDownLatch addCDL = new CountDownLatch(1);
CountDownLatch removeCDL = new CountDownLatch(1);
final CountDownLatch addCDL = new CountDownLatch(1);
final CountDownLatch removeCDL = new CountDownLatch(1);
ZookeeperNodeListener listener = new ZookeeperNodeListener();
listener.setZkConnectString(server.getConnectString());
listener.setPath(PATH);
Expand Down

0 comments on commit ad61aeb

Please sign in to comment.