Skip to content

Commit

Permalink
Fix test broken by previous code review change
Browse files Browse the repository at this point in the history
  • Loading branch information
ctubbsii committed Jan 3, 2025
1 parent e7f5185 commit 67dd3ea
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

import org.apache.accumulo.core.Constants;
import org.apache.accumulo.core.data.InstanceId;
import org.apache.accumulo.core.fate.zookeeper.ZooReader;
import org.apache.accumulo.core.fate.zookeeper.ZooUtil;
import org.apache.accumulo.core.zookeeper.ZooSession;
import org.apache.zookeeper.KeeperException.NoNodeException;
Expand Down Expand Up @@ -80,7 +81,11 @@ public void setupMocks() {
instanceId = InstanceId.of(UUID.randomUUID());
baseNode = ZooUtil.getRoot(instanceId) + Constants.ZDELEGATION_TOKEN_KEYS;
secretManager = new AuthenticationTokenSecretManager(instanceId, tokenLifetime);

expect(zk.asReader()).andReturn(new ZooReader(zk)).once();
replay(zk);
keyWatcher = new ZooAuthenticationKeyWatcher(secretManager, zk, baseNode);
reset(zk);
}

@AfterEach
Expand Down

0 comments on commit 67dd3ea

Please sign in to comment.