diff options
author | gvit <gvit@ydb.tech> | 2023-01-22 22:33:01 +0300 |
---|---|---|
committer | gvit <gvit@ydb.tech> | 2023-01-22 22:33:01 +0300 |
commit | c904a03f6f87cdb8db84e5e4729ac462278a4893 (patch) | |
tree | c06a0ef2698948a93511e22ba7b387421b508c2d | |
parent | 7f05504cc7ba85dd178562f44f7ab4031f797233 (diff) | |
download | ydb-c904a03f6f87cdb8db84e5e4729ac462278a4893.tar.gz |
trying to fix test
-rw-r--r-- | ydb/services/ydb/ydb_olapstore_ut.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ydb/services/ydb/ydb_olapstore_ut.cpp b/ydb/services/ydb/ydb_olapstore_ut.cpp index 2f42612495..7919aac5a4 100644 --- a/ydb/services/ydb/ydb_olapstore_ut.cpp +++ b/ydb/services/ydb/ydb_olapstore_ut.cpp @@ -264,7 +264,7 @@ Y_UNIT_TEST_SUITE(YdbOlapStore) { } } - TString RunQuery(TDriver& connection, const TString& query) { + TString RunQuerySimple(TDriver& connection, const TString& query) { auto client = NYdb::NTable::TTableClient(connection); NYdb::NTable::TStreamExecScanQuerySettings execSettings; @@ -280,6 +280,18 @@ Y_UNIT_TEST_SUITE(YdbOlapStore) { return result.ResultSetYson; } + TString RunQuery(TDriver& connection, const TString& query) { + for(ui32 iter = 0; iter < 3; iter++) { + try { + return RunQuerySimple(connection, query); + } catch(...) { + /// o_O + } + } + + return RunQuerySimple(connection, query); + } + // Create OLTP and OLAP tables with the same set of columns and same PK void CreateTestTables(const TServerSettings& settings, const TString& tableName, const TString& sharding) { TTestOlapTableOptions opts; |