Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
gladysheva committed Feb 13, 2024
1 parent bcc3ae2 commit 1d4ac2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ public void Should_not_delete_environment_from_cache_when_observation_of_deleted
ShouldReturn(storage, "default", expectedInfo);

Ensemble.Start();
storage.UpdateAll();
ShouldReturn(storage, "default", expectedInfo);
}
}

Expand Down
3 changes: 1 addition & 2 deletions Vostok.ServiceDiscovery.Tests/TestsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ 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 @@ -65,7 +64,7 @@ protected Task KillSession(ZooKeeperClient client) =>

protected ZooKeeperClient GetZooKeeperClient()
{
var settings = new ZooKeeperClientSettings(Ensemble.ConnectionString) {Timeout = DefaultZkClientTimeout};
var settings = new ZooKeeperClientSettings(Ensemble.ConnectionString) {Timeout = DefaultTimeout};
return new ZooKeeperClient(settings, Log);
}

Expand Down

0 comments on commit 1d4ac2e

Please sign in to comment.