From bcc3ae21338b19ffe60d387342a694c18f3d02de Mon Sep 17 00:00:00 2001 From: gladysheva Date: Tue, 13 Feb 2024 13:11:20 +0500 Subject: [PATCH] test --- Vostok.ServiceDiscovery.Tests/TestsBase.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }