aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorInnokentii Mokin <innokentii@ydb.tech>2024-12-05 03:50:23 +0300
committerGitHub <noreply@github.com>2024-12-05 03:50:23 +0300
commitef2c23cc54f73a75d23fc7973bdab4dc74c1bb07 (patch)
tree182dd81f417e0dc0d00136e6600cd2801e1c7fac
parentfb73171c40e373a8aab3e4fbabea575edd025689 (diff)
downloadydb-ef2c23cc54f73a75d23fc7973bdab4dc74c1bb07.tar.gz
Make incr backup tests independent of order (#12280)
-rw-r--r--ydb/core/tx/datashard/datashard_ut_incremental_backup.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ydb/core/tx/datashard/datashard_ut_incremental_backup.cpp b/ydb/core/tx/datashard/datashard_ut_incremental_backup.cpp
index 943853664e2..35ef609ee74 100644
--- a/ydb/core/tx/datashard/datashard_ut_incremental_backup.cpp
+++ b/ydb/core/tx/datashard/datashard_ut_incremental_backup.cpp
@@ -223,6 +223,7 @@ Y_UNIT_TEST_SUITE(IncrementalBackup) {
UNIT_ASSERT_VALUES_EQUAL(
KqpSimpleExec(runtime, R"(
SELECT key, value FROM `/Root/IncrBackupImpl`
+ ORDER BY key
)"),
result);
@@ -242,6 +243,7 @@ Y_UNIT_TEST_SUITE(IncrementalBackup) {
UNIT_ASSERT_VALUES_EQUAL(
KqpSimpleExec(runtime, R"(
SELECT key, value FROM `/Root/IncrBackupImpl`
+ ORDER BY key
)"),
result);
}
@@ -294,6 +296,7 @@ Y_UNIT_TEST_SUITE(IncrementalBackup) {
UNIT_ASSERT_VALUES_EQUAL(
KqpSimpleExec(runtime, R"(
SELECT key, value FROM `/Root/Table`
+ ORDER BY key
)"),
"{ items { uint32_value: 1 } items { uint32_value: 10 } }, "
"{ items { uint32_value: 3 } items { uint32_value: 30 } }");
@@ -353,9 +356,11 @@ Y_UNIT_TEST_SUITE(IncrementalBackup) {
UNIT_ASSERT_VALUES_EQUAL(
KqpSimpleExec(runtime, R"(
SELECT key, value FROM `/Root/Table`
+ ORDER BY key
)"),
KqpSimpleExec(runtime, R"(
SELECT key, value FROM `/Root/RestoreTable`
+ ORDER BY key
)"));
}