diff options
author | anskor <anskor@yandex-team.ru> | 2022-02-10 16:50:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:18 +0300 |
commit | dbfc9d8546687ce31ffd112c6c2d2f14be1bb4f0 (patch) | |
tree | 51436f0d49801f6430e492b4c472a80f98760a34 /library/cpp/retry/retry_ut.cpp | |
parent | a1b790e06e8e99cffd5157a991259f9d0f993f66 (diff) | |
download | ydb-dbfc9d8546687ce31ffd112c6c2d2f14be1bb4f0.tar.gz |
Restoring authorship annotation for <anskor@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/retry/retry_ut.cpp')
-rw-r--r-- | library/cpp/retry/retry_ut.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/retry/retry_ut.cpp b/library/cpp/retry/retry_ut.cpp index 92153e987e..4144746af9 100644 --- a/library/cpp/retry/retry_ut.cpp +++ b/library/cpp/retry/retry_ut.cpp @@ -99,19 +99,19 @@ Y_UNIT_TEST_SUITE(Retry) { Y_UNIT_TEST(RetryOnRetCodeFail) { UNIT_ASSERT(false == DoWithRetryOnRetCode(TDoOnSecondOrFail{}, TRetryOptions(0, TDuration::Zero()))); } - Y_UNIT_TEST(MakeRetryOptionsFromProto) { - NRetry::TRetryOptionsPB protoOptions; - protoOptions.SetMaxTries(1); - protoOptions.SetInitialSleepMs(2); - protoOptions.SetSleepIncrementMs(3); - protoOptions.SetRandomDeltaMs(4); - protoOptions.SetExponentalMultiplierMs(5); - - const TRetryOptions options = MakeRetryOptions(protoOptions); - UNIT_ASSERT_EQUAL(options.RetryCount, 1); - UNIT_ASSERT_EQUAL(options.SleepDuration, TDuration::MilliSeconds(2)); - UNIT_ASSERT_EQUAL(options.SleepIncrement, TDuration::MilliSeconds(3)); - UNIT_ASSERT_EQUAL(options.SleepRandomDelta, TDuration::MilliSeconds(4)); - UNIT_ASSERT_EQUAL(options.SleepExponentialMultiplier, TDuration::MilliSeconds(5)); - } + Y_UNIT_TEST(MakeRetryOptionsFromProto) { + NRetry::TRetryOptionsPB protoOptions; + protoOptions.SetMaxTries(1); + protoOptions.SetInitialSleepMs(2); + protoOptions.SetSleepIncrementMs(3); + protoOptions.SetRandomDeltaMs(4); + protoOptions.SetExponentalMultiplierMs(5); + + const TRetryOptions options = MakeRetryOptions(protoOptions); + UNIT_ASSERT_EQUAL(options.RetryCount, 1); + UNIT_ASSERT_EQUAL(options.SleepDuration, TDuration::MilliSeconds(2)); + UNIT_ASSERT_EQUAL(options.SleepIncrement, TDuration::MilliSeconds(3)); + UNIT_ASSERT_EQUAL(options.SleepRandomDelta, TDuration::MilliSeconds(4)); + UNIT_ASSERT_EQUAL(options.SleepExponentialMultiplier, TDuration::MilliSeconds(5)); + } } |