Skip to content

Commit

Permalink
tablet stresstest should have less iterations under ubsan - otherwise…
Browse files Browse the repository at this point in the history
… we hit the timeout (#1793)
  • Loading branch information
qkrorlqr authored Aug 14, 2024
1 parent d6de877 commit 7f2ac07
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <library/cpp/testing/unittest/registar.h>

#include <util/generic/hash_set.h>
#include <util/generic/size_literals.h>
#include <util/system/env.h>

Expand Down Expand Up @@ -354,7 +355,8 @@ Y_UNIT_TEST_SUITE(TIndexTabletTest_Data_Stress)
const auto sanitizerType = GetEnv("SANITIZER_TYPE");
// temporary logging
Cerr << "sanitizer: " << sanitizerType << Endl;
const ui32 d = sanitizerType == "thread" ? 20 : 1;
THashSet<TString> slowSanitizers({"thread", "undefined"});
const ui32 d = slowSanitizers.contains(sanitizerType) ? 20 : 1;

PERFORM_TEST(5'000 / d);
PERFORM_TEST(1'000 / d);
Expand Down

0 comments on commit 7f2ac07

Please sign in to comment.