Skip to content

Commit 1fffee1

Browse files
Artem ErmoshkinShfdis
authored andcommitted
fix test flap
1 parent 151716a commit 1fffee1

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

tests/unit/client/retry_range/retry_range_ut.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ struct TTableClientFixture {
158158
.SetDatabase("/Root/My/DB"));
159159
Client = std::make_unique<NTable::TTableClient>(*Driver);
160160
}
161+
162+
~TTableClientFixture() {
163+
Client.reset();
164+
if (Driver) {
165+
Driver->Stop(true);
166+
}
167+
if (GrpcServer) {
168+
GrpcServer->Shutdown();
169+
}
170+
}
161171
};
162172

163173
struct TQueryClientFixture {
@@ -180,6 +190,16 @@ struct TQueryClientFixture {
180190
.SetDatabase("/Root/My/DB"));
181191
Client = std::make_unique<NQuery::TQueryClient>(*Driver);
182192
}
193+
194+
~TQueryClientFixture() {
195+
Client.reset();
196+
if (Driver) {
197+
Driver->Stop(true);
198+
}
199+
if (GrpcServer) {
200+
GrpcServer->Shutdown();
201+
}
202+
}
183203
};
184204

185205
} // namespace

0 commit comments

Comments
 (0)