Skip to content

Commit

Permalink
Fix unit test broken by recent code review change
Browse files Browse the repository at this point in the history
  • Loading branch information
ctubbsii committed Jan 2, 2025
1 parent a03de14 commit 38851ad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public void fetchInstancesFromZk() throws Exception {

ZooSession zk = createMock(ZooSession.class);
String namePath = Constants.ZROOT + Constants.ZINSTANCES;
expect(zk.asReader()).andReturn(new ZooReader(zk)).anyTimes();
expect(zk.getChildren(eq(namePath), isNull())).andReturn(List.of(instAName, instBName)).once();
expect(zk.getData(eq(namePath + "/" + instAName), isNull(), isNull()))
.andReturn(instA.canonical().getBytes(UTF_8)).once();
Expand Down

0 comments on commit 38851ad

Please sign in to comment.