Skip to content

Commit 5ca4cf9

Browse files
authored
Run StatService in test library (#14269)
1 parent f8a532d commit 5ca4cf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ydb/core/testlib/test_client.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
#include <ydb/core/kesus/tablet/tablet.h>
111111
#include <ydb/core/sys_view/processor/processor.h>
112112
#include <ydb/core/statistics/aggregator/aggregator.h>
113+
#include <ydb/core/statistics/service/service.h>
113114
#include <ydb/core/keyvalue/keyvalue.h>
114115
#include <ydb/core/persqueue/pq.h>
115116
#include <ydb/core/persqueue/cluster_tracker.h>
@@ -1363,6 +1364,10 @@ namespace Tests {
13631364
Runtime->GetAppData(nodeIdx).Counters);
13641365
const TActorId controllerActorId = Runtime->Register(controllerActor, nodeIdx, Runtime->GetAppData(nodeIdx).BatchPoolId);
13651366
Runtime->RegisterService(NMemory::MakeMemoryControllerId(0), controllerActorId, nodeIdx);
1367+
1368+
auto statActor = NStat::CreateStatService();
1369+
const TActorId statActorId = Runtime->Register(statActor.Release(), nodeIdx, Runtime->GetAppData(nodeIdx).UserPoolId);
1370+
Runtime->RegisterService(NStat::MakeStatServiceID(Runtime->GetNodeId(nodeIdx)), statActorId, nodeIdx);
13661371
}
13671372
}
13681373

0 commit comments

Comments
 (0)