diff options
Diffstat (limited to 'configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionZooKeeperClientTest.java')
-rw-r--r-- | configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionZooKeeperClientTest.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionZooKeeperClientTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionZooKeeperClientTest.java index 1d7df7acfd0..fd0e34b9814 100644 --- a/configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionZooKeeperClientTest.java +++ b/configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionZooKeeperClientTest.java @@ -6,6 +6,7 @@ import com.yahoo.config.provision.ApplicationId; import com.yahoo.path.Path; import com.yahoo.text.Utf8; import com.yahoo.vespa.config.server.zookeeper.ConfigCurator; +import com.yahoo.vespa.config.util.ConfigUtils; import com.yahoo.vespa.curator.Curator; import com.yahoo.vespa.curator.mock.MockCurator; import org.junit.Before; @@ -112,7 +113,10 @@ public class SessionZooKeeperClientTest { } private SessionZooKeeperClient createSessionZKClient(String sessionId) { - SessionZooKeeperClient zkc = new SessionZooKeeperClient(curator, Path.fromString(sessionId)); + SessionZooKeeperClient zkc = new SessionZooKeeperClient(curator, + ConfigCurator.create(curator), + Path.fromString(sessionId), + ConfigUtils.getCanonicalHostName()); zkc.createNewSession(Instant.now()); return zkc; } |