diff --git a/Vostok.ServiceDiscovery.Tests/TestsBase.cs b/Vostok.ServiceDiscovery.Tests/TestsBase.cs index 6808643..7b36691 100644 --- a/Vostok.ServiceDiscovery.Tests/TestsBase.cs +++ b/Vostok.ServiceDiscovery.Tests/TestsBase.cs @@ -29,7 +29,8 @@ internal abstract class TestsBase protected ZooKeeperEnsemble Ensemble; protected ZooKeeperClient ZooKeeperClient; protected IServiceDiscoveryManager ServiceDiscoveryManager; - + private static readonly TimeSpan DefaultZkClientTimeout = 8.Seconds(); + [OneTimeSetUp] public void OneTimeSetUp() { @@ -64,7 +65,7 @@ protected Task KillSession(ZooKeeperClient client) => protected ZooKeeperClient GetZooKeeperClient() { - var settings = new ZooKeeperClientSettings(Ensemble.ConnectionString) {Timeout = DefaultTimeout}; + var settings = new ZooKeeperClientSettings(Ensemble.ConnectionString) {Timeout = DefaultZkClientTimeout}; return new ZooKeeperClient(settings, Log); }