Skip to content

Commit 4e8db57

Browse files
committed
Fix TEgg creation
1 parent 5c64578 commit 4e8db57

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

ydb/core/quoter/ut_helpers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ TKesusProxyTestSetup::TKesusProxyTestSetup() {
180180
}
181181

182182
TTestActorRuntime::TEgg MakeEgg() {
183-
return { new TAppData(0, 0, 0, 0, { }, nullptr, nullptr, nullptr, nullptr), nullptr, nullptr };
183+
return { new TAppData(0, 0, 0, 0, { }, nullptr, nullptr, nullptr, nullptr), nullptr, nullptr, {} };
184184
}
185185

186186
void TKesusProxyTestSetup::Start() {

ydb/core/sys_view/partition_stats/partition_stats_ut.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Y_UNIT_TEST_SUITE(PartitionStats) {
1313

1414
TTestActorRuntime::TEgg MakeEgg()
1515
{
16-
return { new TAppData(0, 0, 0, 0, { }, nullptr, nullptr, nullptr, nullptr), nullptr, nullptr };
16+
return { new TAppData(0, 0, 0, 0, { }, nullptr, nullptr, nullptr, nullptr), nullptr, nullptr, {} };
1717
}
1818

1919
void WaitForBootstrap(TTestActorRuntime &runtime) {

ydb/core/tablet_flat/test/libs/exec/runner.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace NFake {
4646
auto *types = NTable::NTest::DbgRegistry();
4747
auto *app = new TAppData(0, 0, 0, 0, { }, types, nullptr, nullptr, nullptr);
4848

49-
Env.Initialize({ app, nullptr, nullptr });
49+
Env.Initialize({ app, nullptr, nullptr, {} });
5050
Env.SetDispatchTimeout(DEFAULT_DISPATCH_TIMEOUT);
5151
Env.SetLogPriority(NKikimrServices::FAKE_ENV, NActors::NLog::PRI_INFO);
5252

ydb/core/testlib/actors/test_runtime.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ namespace NActors {
154154
nodeAppData->GraphConfig = app0->GraphConfig;
155155
nodeAppData->EnableMvccSnapshotWithLegacyDomainRoot = app0->EnableMvccSnapshotWithLegacyDomainRoot;
156156
nodeAppData->IoContextFactory = app0->IoContextFactory;
157-
nodeAppData->Icb = std::move(egg.Icb[nodeIndex]);
158-
nodeAppData->InFlightLimiterRegistry.Reset(new NKikimr::NGRpcService::TInFlightLimiterRegistry(nodeAppData->Icb));
157+
if (nodeIndex < egg.Icb.size()) {
158+
nodeAppData->Icb = std::move(egg.Icb[nodeIndex]);
159+
nodeAppData->InFlightLimiterRegistry.Reset(new NKikimr::NGRpcService::TInFlightLimiterRegistry(nodeAppData->Icb));
160+
}
159161
if (KeyConfigGenerator) {
160162
nodeAppData->KeyConfig = KeyConfigGenerator(nodeIndex);
161163
} else {

ydb/core/testlib/actors/test_runtime_ut.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Y_UNIT_TEST_SUITE(TActorTest) {
1212
TTestActorRuntime::TEgg MakeEgg()
1313
{
1414
return
15-
{ new TAppData(0, 0, 0, 0, { }, nullptr, nullptr, nullptr, nullptr), nullptr, nullptr };
15+
{ new TAppData(0, 0, 0, 0, { }, nullptr, nullptr, nullptr, nullptr), nullptr, nullptr, {} };
1616
}
1717

1818
Y_UNIT_TEST(TestHandleEvent) {

ydb/library/ncloud/impl/access_service_ut.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct TTestSetup : public NUnitTest::TBaseFixture {
3434

3535
TTestActorRuntime::TEgg MakeEgg() {
3636
return
37-
{ new TAppData(0, 0, 0, 0, { }, nullptr, nullptr, nullptr, nullptr), nullptr, nullptr };
37+
{ new TAppData(0, 0, 0, 0, { }, nullptr, nullptr, nullptr, nullptr), nullptr, nullptr, {} };
3838
}
3939

4040
void Init() {

0 commit comments

Comments
 (0)