diff options
author | ienkovich <ienkovich@yandex-team.ru> | 2022-02-10 16:47:50 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:50 +0300 |
commit | 0a579de32b745908473b2cea7c5cd5540bc801f0 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/actors/testlib | |
parent | 5bd76e73fa8dd777999be2668ff56928cc3dbecb (diff) | |
download | ydb-0a579de32b745908473b2cea7c5cd5540bc801f0.tar.gz |
Restoring authorship annotation for <ienkovich@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/actors/testlib')
-rw-r--r-- | library/cpp/actors/testlib/test_runtime.cpp | 8 | ||||
-rw-r--r-- | library/cpp/actors/testlib/test_runtime.h | 32 |
2 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/actors/testlib/test_runtime.cpp b/library/cpp/actors/testlib/test_runtime.cpp index 66b353d49d..6fa25b9965 100644 --- a/library/cpp/actors/testlib/test_runtime.cpp +++ b/library/cpp/actors/testlib/test_runtime.cpp @@ -815,9 +815,9 @@ namespace NActors { } void TTestActorRuntimeBase::AdvanceCurrentTime(TDuration duration) { - UpdateCurrentTime(GetCurrentTime() + duration); - } - + UpdateCurrentTime(GetCurrentTime() + duration); + } + TIntrusivePtr<ITimeProvider> TTestActorRuntimeBase::GetTimeProvider() { Y_VERIFY(!UseRealThreads); return TimeProvider; @@ -1650,7 +1650,7 @@ namespace NActors { common.Reset(new TInterconnectProxyCommon); common->NameserviceId = nameserviceId; common->MonCounters = interconnectCounters; - common->TechnicalSelfHostName = "::1"; + common->TechnicalSelfHostName = "::1"; if (!UseRealThreads) { common->Settings.DeadPeer = TDuration::Max(); diff --git a/library/cpp/actors/testlib/test_runtime.h b/library/cpp/actors/testlib/test_runtime.h index b788acfb36..26e3b45c98 100644 --- a/library/cpp/actors/testlib/test_runtime.h +++ b/library/cpp/actors/testlib/test_runtime.h @@ -231,7 +231,7 @@ namespace NActors { TIntrusivePtr<ITimeProvider> GetTimeProvider(); TInstant GetCurrentTime() const; void UpdateCurrentTime(TInstant newTime); - void AdvanceCurrentTime(TDuration duration); + void AdvanceCurrentTime(TDuration duration); void AddLocalService(const TActorId& actorId, const TActorSetupCmd& cmd, ui32 nodeIndex = 0); virtual void Initialize(); ui32 GetNodeId(ui32 index = 0) const; @@ -269,21 +269,21 @@ namespace NActors { bool IsScheduleForActorEnabled(const TActorId& actorId) const; TIntrusivePtr<NMonitoring::TDynamicCounters> GetDynamicCounters(ui32 nodeIndex = 0); void SetupMonitoring(); - - template<typename T> - void AppendToLogSettings(NLog::EComponent minVal, NLog::EComponent maxVal, T func) { - Y_VERIFY(!IsInitialized); - - for (const auto& pair : Nodes) { - pair.second->LogSettings->Append(minVal, maxVal, func); - } - } - - TIntrusivePtr<NLog::TSettings> GetLogSettings(ui32 nodeIdx) - { - return Nodes[FirstNodeId + nodeIdx]->LogSettings; - } - + + template<typename T> + void AppendToLogSettings(NLog::EComponent minVal, NLog::EComponent maxVal, T func) { + Y_VERIFY(!IsInitialized); + + for (const auto& pair : Nodes) { + pair.second->LogSettings->Append(minVal, maxVal, func); + } + } + + TIntrusivePtr<NLog::TSettings> GetLogSettings(ui32 nodeIdx) + { + return Nodes[FirstNodeId + nodeIdx]->LogSettings; + } + TActorSystem* SingleSys() const; TActorSystem* GetAnyNodeActorSystem(); TActorSystem* GetActorSystem(ui32 nodeId); |