Skip to content

Commit

Permalink
Fixed CMake build for SDK test server_restart (#14156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gazizonoki authored Feb 3, 2025
1 parent ec27a5d commit f65ff9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ydb/public/sdk/cpp/tests/integration/server_restart/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include <grpcpp/grpcpp.h>

#include <util/string/cast.h>

#include <thread>

using namespace NYdb;
Expand Down Expand Up @@ -180,7 +182,7 @@ TEST_F(ServerRestartTest, RestartOnGetSession) {
std::optional<TStatus> status;
while (!closed.load()) {
status = client.RetryQuerySync([](NYdb::NQuery::TSession session) {
return session.ExecuteQuery("SELECT 1", NYdb::NQuery::TTxControl::NoTx()).ExtractValueSync();
return session.ExecuteQuery("SELECT 1", NYdb::NQuery::TTxControl::BeginTx().CommitTx()).ExtractValueSync();
});

ASSERT_LE(client.GetActiveSessionCount(), 1);
Expand Down

0 comments on commit f65ff9f

Please sign in to comment.