From 5ca4cf9c28750f17338fecbbf9305a50584e21c8 Mon Sep 17 00:00:00 2001 From: Hor911 Date: Thu, 6 Feb 2025 19:42:40 +0300 Subject: [PATCH] Run StatService in test library (#14269) --- ydb/core/testlib/test_client.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ydb/core/testlib/test_client.cpp b/ydb/core/testlib/test_client.cpp index c37f5b111b19..1eb901280cb1 100644 --- a/ydb/core/testlib/test_client.cpp +++ b/ydb/core/testlib/test_client.cpp @@ -110,6 +110,7 @@ #include #include #include +#include #include #include #include @@ -1363,6 +1364,10 @@ namespace Tests { Runtime->GetAppData(nodeIdx).Counters); const TActorId controllerActorId = Runtime->Register(controllerActor, nodeIdx, Runtime->GetAppData(nodeIdx).BatchPoolId); Runtime->RegisterService(NMemory::MakeMemoryControllerId(0), controllerActorId, nodeIdx); + + auto statActor = NStat::CreateStatService(); + const TActorId statActorId = Runtime->Register(statActor.Release(), nodeIdx, Runtime->GetAppData(nodeIdx).UserPoolId); + Runtime->RegisterService(NStat::MakeStatServiceID(Runtime->GetNodeId(nodeIdx)), statActorId, nodeIdx); } }