diff --git a/cloud/blockstore/libs/discovery/test_server.cpp b/cloud/blockstore/libs/discovery/test_server.cpp index 2ae471835a..689e561b07 100644 --- a/cloud/blockstore/libs/discovery/test_server.cpp +++ b/cloud/blockstore/libs/discovery/test_server.cpp @@ -17,6 +17,8 @@ #include #include +#include + namespace NCloud::NBlockStore::NDiscovery { namespace { @@ -162,7 +164,9 @@ struct TFakeBlockStoreServer::TImpl void* tag; bool ok; while (!AtomicGet(ShouldStop)) { - const auto deadline = gpr_time_0(GPR_TIMESPAN); + const auto deadline = + std::chrono::system_clock::now() + + std::chrono::milliseconds(100); auto status = CQ->AsyncNext(&tag, &ok, deadline); if (status != grpc::CompletionQueue::GOT_EVENT) { continue;