Skip to content

Commit

Permalink
fix test YdbLogStore.LogTable (ydb-platform#3535)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmorozov333 authored Apr 8, 2024
1 parent 14c3235 commit 3fa95b9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ydb/services/ydb/ydb_logstore_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,10 @@ Y_UNIT_TEST_SUITE(YdbLogStore) {
auto res = schemaClient.ListDirectory("/Root/LogStore/.sys").GetValueSync();
UNIT_ASSERT_VALUES_EQUAL_C(res.GetStatus(), EStatus::SUCCESS, res.GetIssues().ToString());
auto children = res.GetChildren();
UNIT_ASSERT_VALUES_EQUAL(children.size(), 2);
UNIT_ASSERT_VALUES_EQUAL(children[0].Name, "store_primary_index_portion_stats");
UNIT_ASSERT_VALUES_EQUAL(children[1].Name, "store_primary_index_stats");
UNIT_ASSERT_VALUES_EQUAL(children.size(), 3);
UNIT_ASSERT_VALUES_EQUAL(children[0].Name, "store_primary_index_granule_stats");
UNIT_ASSERT_VALUES_EQUAL(children[1].Name, "store_primary_index_portion_stats");
UNIT_ASSERT_VALUES_EQUAL(children[2].Name, "store_primary_index_stats");
}

{
Expand All @@ -352,9 +353,10 @@ Y_UNIT_TEST_SUITE(YdbLogStore) {
auto res = schemaClient.ListDirectory("/Root/LogStore/log1/.sys").GetValueSync();
UNIT_ASSERT_VALUES_EQUAL_C(res.GetStatus(), EStatus::SUCCESS, res.GetIssues().ToString());
auto children = res.GetChildren();
UNIT_ASSERT_VALUES_EQUAL(children.size(), 2);
UNIT_ASSERT_VALUES_EQUAL(children[0].Name, "primary_index_portion_stats");
UNIT_ASSERT_VALUES_EQUAL(children[1].Name, "primary_index_stats");
UNIT_ASSERT_VALUES_EQUAL(children.size(), 3);
UNIT_ASSERT_VALUES_EQUAL(children[0].Name, "primary_index_granule_stats");
UNIT_ASSERT_VALUES_EQUAL(children[1].Name, "primary_index_portion_stats");
UNIT_ASSERT_VALUES_EQUAL(children[2].Name, "primary_index_stats");
}

{
Expand Down

0 comments on commit 3fa95b9

Please sign in to comment.