dlmarion commented on code in PR #5256: URL: https://github.com/apache/accumulo/pull/5256#discussion_r1928892561
########## core/src/test/java/org/apache/accumulo/core/zookeeper/ZooCacheTest.java: ########## @@ -287,29 +350,31 @@ private void testWatchDataNode(byte[] initialData, Watcher.Event.EventType event WatchedEvent event = new WatchedEvent(eventType, Watcher.Event.KeeperState.SyncConnected, ZPATH); TestWatcher exw = new TestWatcher(event); - zc = new ZooCache(zk, exw); - - Watcher w = watchData(initialData); - w.process(event); + zc = new TestZooCache(zk, Set.of(root)); + zc.addZooCacheWatcher(exw); + // The ZooCache constructor sets an expectation + // of addSessionObserver being called later during + // the tests. Remove this expectation by calling + // reset Review Comment: Removed all occurrences in a481f9b. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@accumulo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org