Skip to content

Commit

Permalink
explicitly stop driver in these tests (ydb-platform#11290)
Browse files Browse the repository at this point in the history
  • Loading branch information
gridnevvvit authored Nov 5, 2024
1 parent f8cbfb3 commit 9b41ac2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ydb/core/kqp/ut/common/kqp_ut_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ class TKikimrRunner {
TKikimrRunner(const NFake::TStorage& storage);

~TKikimrRunner() {
Server->GetRuntime()->SetObserverFunc(TTestActorRuntime::DefaultObserverFunc);

RunCall([&] { Driver->Stop(true); return false; });
if (ThreadPoolStarted_) {
ThreadPool.Stop();
Expand All @@ -156,6 +158,7 @@ class TKikimrRunner {
Client.Reset();
}

NYdb::TDriver* GetDriverMut() { return Driver.Get(); }
const TString& GetEndpoint() const { return Endpoint; }
const NYdb::TDriver& GetDriver() const { return *Driver; }
NYdb::NScheme::TSchemeClient GetSchemeClient() const { return NYdb::NScheme::TSchemeClient(*Driver); }
Expand Down

0 comments on commit 9b41ac2

Please sign in to comment.