HBASE-18441 ZookeeperWatcher#interruptedException should throw exception (addendum)

This commit is contained in:
Yu Li 2017-07-26 15:48:34 +08:00
parent 145f7d8a4d
commit 5726263fb2
1 changed files with 2 additions and 2 deletions

View File

@ -107,9 +107,9 @@ public class TestZKUtil {
}
};
Mockito.doThrow(new InterruptedException()).when(recoverableZk)
.getChildren(zkw.znodePaths.baseZNode, null);
.getChildren(zkw.assignmentZNode, null);
try {
ZKUtil.listChildrenNoWatch(zkw, zkw.znodePaths.baseZNode);
ZKUtil.listChildrenNoWatch(zkw, zkw.assignmentZNode);
} catch (KeeperException.SystemErrorException e) {
// expected
return;