Skip to content

Commit ef2c23c

Browse files
authored
Make incr backup tests independent of order (#12280)
1 parent fb73171 commit ef2c23c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ydb/core/tx/datashard/datashard_ut_incremental_backup.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ Y_UNIT_TEST_SUITE(IncrementalBackup) {
223223
UNIT_ASSERT_VALUES_EQUAL(
224224
KqpSimpleExec(runtime, R"(
225225
SELECT key, value FROM `/Root/IncrBackupImpl`
226+
ORDER BY key
226227
)"),
227228
result);
228229

@@ -242,6 +243,7 @@ Y_UNIT_TEST_SUITE(IncrementalBackup) {
242243
UNIT_ASSERT_VALUES_EQUAL(
243244
KqpSimpleExec(runtime, R"(
244245
SELECT key, value FROM `/Root/IncrBackupImpl`
246+
ORDER BY key
245247
)"),
246248
result);
247249
}
@@ -294,6 +296,7 @@ Y_UNIT_TEST_SUITE(IncrementalBackup) {
294296
UNIT_ASSERT_VALUES_EQUAL(
295297
KqpSimpleExec(runtime, R"(
296298
SELECT key, value FROM `/Root/Table`
299+
ORDER BY key
297300
)"),
298301
"{ items { uint32_value: 1 } items { uint32_value: 10 } }, "
299302
"{ items { uint32_value: 3 } items { uint32_value: 30 } }");
@@ -353,9 +356,11 @@ Y_UNIT_TEST_SUITE(IncrementalBackup) {
353356
UNIT_ASSERT_VALUES_EQUAL(
354357
KqpSimpleExec(runtime, R"(
355358
SELECT key, value FROM `/Root/Table`
359+
ORDER BY key
356360
)"),
357361
KqpSimpleExec(runtime, R"(
358362
SELECT key, value FROM `/Root/RestoreTable`
363+
ORDER BY key
359364
)"));
360365
}
361366

0 commit comments

Comments
 (0)