diff options
author | andrew-rykov <arykov@ydb.tech> | 2023-07-06 12:26:30 +0300 |
---|---|---|
committer | andrew-rykov <arykov@ydb.tech> | 2023-07-06 12:26:30 +0300 |
commit | 512da60c5d031e9d3ac0b96c7ecb8b0891267ed0 (patch) | |
tree | a6c16cfbaad0a839fdbf9252048aebfd085a9dc2 | |
parent | b7e0a08cab9583cb83546494333d0c0f87260be2 (diff) | |
download | ydb-512da60c5d031e9d3ac0b96c7ecb8b0891267ed0.tar.gz |
tenantinfo handler test flashes
-rw-r--r-- | ydb/core/viewer/viewer_ut.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ydb/core/viewer/viewer_ut.cpp b/ydb/core/viewer/viewer_ut.cpp index cb2e13a89e..c7fe51c4f3 100644 --- a/ydb/core/viewer/viewer_ut.cpp +++ b/ydb/core/viewer/viewer_ut.cpp @@ -33,6 +33,16 @@ using namespace NMonitoring; #define Ctest Cerr #endif +#ifdef address_sanitizer_enabled +#define SANITIZER_TYPE address +#endif +#ifdef memory_sanitizer_enabled +#define SANITIZER_TYPE memory +#endif +#ifdef thread_sanitizer_enabled +#define SANITIZER_TYPE thread +#endif + using duration_nano_t = std::chrono::duration<ui64, std::nano>; using duration_t = std::chrono::duration<double>; @@ -431,6 +441,13 @@ Y_UNIT_TEST_SUITE(Viewer) { Ctest << "Request timer = " << timer.Passed() << Endl; Ctest << "BASE_PERF = " << BASE_PERF << Endl; - UNIT_ASSERT_LT(timer.Passed(), 10 * BASE_PERF); + +#ifndef SANITIZER_TYPE +#if !defined(NDEBUG) || defined(_hardening_enabled_) + UNIT_ASSERT_VALUES_EQUAL_C(timer.Passed() < 30 * BASE_PERF, true, "timer = " << timer.Passed() << ", limit = " << 30 * BASE_PERF); +#else + UNIT_ASSERT_VALUES_EQUAL_C(timer.Passed() < 10 * BASE_PERF, true, "timer = " << timer.Passed() << ", limit = " << 10 * BASE_PERF); +#endif +#endif } } |