Skip to content

Commit 8b9d96f

Browse files
committed
fix http request tests
1 parent 90ae6d2 commit 8b9d96f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

ydb/core/statistics/service/ut/ut_http_request.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,11 @@ void ProbeBaseStatsTest(bool isServerless) {
8888
}
8989
CreateColumnStoreTable(env, "Database", "Table", 5);
9090
const TString path = "/Root/Database/Table";
91+
const TPathId pathId = ResolvePathId(runtime, path);
9192
const ui32 nodeIdx = 1;
9293

93-
// Wait until all SchemeShards send out the stats to the StatisticsAggregator.
94-
THashSet<ui64> schemeShardsSet;
95-
auto statsObserver = runtime.AddObserver<TEvStatistics::TEvSchemeShardStats>([&](auto& ev) {
96-
schemeShardsSet.insert(ev->Get()->Record.GetSchemeShardId());
97-
});
98-
runtime.WaitFor("TEvSchemeShardStats", [&] {
99-
return schemeShardsSet.size() >= (isServerless ? 2 : 1);
100-
});
94+
// Wait until correct base statistics gets reported.
95+
ValidateRowCount(runtime, nodeIdx, pathId, ColumnTableRowsNumber);
10196

10297
// Issue the probe_base_stats request and verify that the result makes sense.
10398
const auto sender = runtime.AllocateEdgeActor(nodeIdx);

0 commit comments

Comments
 (0)