Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gladysheva committed Feb 13, 2024
1 parent d2bac75 commit bcc3ae2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Vostok.ServiceDiscovery.Tests/TestsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit bcc3ae2

Please sign in to comment.