diff options
author | whcrc <whcrc@yandex-team.ru> | 2022-02-10 16:49:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:30 +0300 |
commit | c8684fa83d799b720b948c7df1a6dc98cb249651 (patch) | |
tree | 8f88503dba71a02a3a0e8ab5513c020ebfb37a7a /library/cpp | |
parent | 9d2a99f5085a7425ef22831762c8684b687e0500 (diff) | |
download | ydb-c8684fa83d799b720b948c7df1a6dc98cb249651.tar.gz |
Restoring authorship annotation for <whcrc@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/tvmauth/client/misc/api/settings.h | 2 | ||||
-rw-r--r-- | library/cpp/tvmauth/client/misc/api/threaded_updater.cpp | 2 | ||||
-rw-r--r-- | library/cpp/tvmauth/client/ut/tvmapi_updater_ut.cpp | 28 |
3 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/tvmauth/client/misc/api/settings.h b/library/cpp/tvmauth/client/misc/api/settings.h index 715ab3e02c..75657b3b73 100644 --- a/library/cpp/tvmauth/client/misc/api/settings.h +++ b/library/cpp/tvmauth/client/misc/api/settings.h @@ -9,7 +9,7 @@ #include <library/cpp/string_utils/secret_string/secret_string.h> -#include <util/datetime/base.h> +#include <util/datetime/base.h> #include <util/generic/hash.h> #include <util/generic/maybe.h> diff --git a/library/cpp/tvmauth/client/misc/api/threaded_updater.cpp b/library/cpp/tvmauth/client/misc/api/threaded_updater.cpp index a7df49c05d..a79f3d8dd2 100644 --- a/library/cpp/tvmauth/client/misc/api/threaded_updater.cpp +++ b/library/cpp/tvmauth/client/misc/api/threaded_updater.cpp @@ -102,7 +102,7 @@ namespace NTvmAuth::NTvmApi { } TThreadedUpdater::TThreadedUpdater(const TClientSettings& settings, TLoggerPtr logger) - : TThreadedUpdaterBase( + : TThreadedUpdaterBase( TRetrySettings{}.WorkerAwakingPeriod, std::move(logger), settings.GetTvmHost(), diff --git a/library/cpp/tvmauth/client/ut/tvmapi_updater_ut.cpp b/library/cpp/tvmauth/client/ut/tvmapi_updater_ut.cpp index 4cf449711b..465a01d401 100644 --- a/library/cpp/tvmauth/client/ut/tvmapi_updater_ut.cpp +++ b/library/cpp/tvmauth/client/ut/tvmapi_updater_ut.cpp @@ -1222,24 +1222,24 @@ Y_UNIT_TEST_SUITE(ApiUpdater) { TNotInitedUpdater::AppendToJsonArray("[kek]", {"sdlzkjvbsdljhfbsdajlhfbsakjdfb", "o92q83yh2uhq2eri23r"})); } - - Y_UNIT_TEST(UpdaterTimeouts) { - NTvmApi::TClientSettings s; - s.SetSelfTvmId(100500); - s.EnableServiceTicketChecking(); + + Y_UNIT_TEST(UpdaterTimeouts) { + NTvmApi::TClientSettings s; + s.SetSelfTvmId(100500); + s.EnableServiceTicketChecking(); s.TvmHost = "localhost"; s.TvmPort = GetRandomPort(); - const auto timeout = TDuration::MilliSeconds(10); + const auto timeout = TDuration::MilliSeconds(10); s.TvmConnectTimeout = timeout; s.TvmSocketTimeout = timeout; - - { - auto l = MakeIntrusive<TLogger>(); - auto startTs = ::Now(); - UNIT_ASSERT_EXCEPTION(NTvmApi::TThreadedUpdater::Create(s, l), yexception); - UNIT_ASSERT_LT(::Now() - startTs, timeout * 2); - } - } + + { + auto l = MakeIntrusive<TLogger>(); + auto startTs = ::Now(); + UNIT_ASSERT_EXCEPTION(NTvmApi::TThreadedUpdater::Create(s, l), yexception); + UNIT_ASSERT_LT(::Now() - startTs, timeout * 2); + } + } } template <> |