Skip to content

Commit bf624a9

Browse files
committed
Fixed CMake build for SDK test server_restart (#14156)
1 parent 512da08 commit bf624a9

File tree

1 file changed

+3
-1
lines changed
  • tests/integration/server_restart

1 file changed

+3
-1
lines changed

tests/integration/server_restart/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#include <grpcpp/grpcpp.h>
99

10+
#include <util/string/cast.h>
11+
1012
#include <thread>
1113

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

186188
ASSERT_LE(client.GetActiveSessionCount(), 1);

0 commit comments

Comments
 (0)