diff options
author | ijon <ijon@yandex-team.com> | 2022-12-26 14:26:12 +0300 |
---|---|---|
committer | ijon <ijon@yandex-team.com> | 2022-12-26 14:26:12 +0300 |
commit | 8ce914020316a4287ea63e40d561388541c6c050 (patch) | |
tree | 5cfaeea4d3c76d22d7f3d6108cd929de431f8eb6 /library/cpp | |
parent | 3e5241cdae5dc6ef8c7fbe3ab2c4740805231470 (diff) | |
download | ydb-8ce914020316a4287ea63e40d561388541c6c050.tar.gz |
schemeshard: make reboot tests run faster
Speedup schemeshard tests with reboots (by 2.5 times approx.)
by not running them with datashard log batching enabled.
It is safe because tests with log batching discover less problems
than without ("glueing" transactions together eliminate chance of
something bad happen in between).
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/actors/testlib/test_runtime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/actors/testlib/test_runtime.cpp b/library/cpp/actors/testlib/test_runtime.cpp index 06ad5d5353..9a5759b98a 100644 --- a/library/cpp/actors/testlib/test_runtime.cpp +++ b/library/cpp/actors/testlib/test_runtime.cpp @@ -663,10 +663,10 @@ namespace NActors { TInstant time = scheduledEvents.begin()->Deadline; while (!scheduledEvents.empty() && scheduledEvents.begin()->Deadline == time) { - static THashMap<std::pair<TActorId, TString>, ui64> eventTypes; +// static THashMap<std::pair<TActorId, TString>, ui64> eventTypes; auto& item = *scheduledEvents.begin(); TString name = item.Event->GetBase() ? TypeName(*item.Event->GetBase()) : Sprintf("%08" PRIx32, item.Event->Type); - eventTypes[std::make_pair(item.Event->Recipient, name)]++; +// eventTypes[std::make_pair(item.Event->Recipient, name)]++; runtime.ScheduledCount++; if (runtime.ScheduledCount > runtime.ScheduledLimit) { // TScheduledTreeItem root("Root"); |