diff options
| author | whcrc <[email protected]> | 2022-02-10 16:49:30 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:30 +0300 | 
| commit | bec923d0b27a4ce1e6e308c3d415b6a1db751a3f (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp | |
| parent | c8684fa83d799b720b948c7df1a6dc98cb249651 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 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 75657b3b738..715ab3e02c2 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 a79f3d8dd20..a7df49c05dd 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 465a01d401c..4cf449711bc 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 <>  | 
