diff options
author | nohttp <nohttp@yandex-team.ru> | 2022-02-10 16:50:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:31 +0300 |
commit | dbdd851418e92f8821ee1b1041352d66e3bde170 (patch) | |
tree | c51433a8aa6b29260a3fbf22c9e9272b2c792c83 /library/cpp/messagebus/test/helper/example.cpp | |
parent | 8de5e9fef85b2ab655e3bc1d77ee2674f417cd15 (diff) | |
download | ydb-dbdd851418e92f8821ee1b1041352d66e3bde170.tar.gz |
Restoring authorship annotation for <nohttp@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/test/helper/example.cpp')
-rw-r--r-- | library/cpp/messagebus/test/helper/example.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/messagebus/test/helper/example.cpp b/library/cpp/messagebus/test/helper/example.cpp index 7c6d704042..5ee0ec3958 100644 --- a/library/cpp/messagebus/test/helper/example.cpp +++ b/library/cpp/messagebus/test/helper/example.cpp @@ -166,24 +166,24 @@ void TExampleClient::WaitReplies() { ResetCounters(); } -EMessageStatus TExampleClient::WaitForError() { +EMessageStatus TExampleClient::WaitForError() { WorkDone.WaitT(TDuration::Seconds(60)); UNIT_ASSERT_VALUES_EQUAL(1, MessageCount); UNIT_ASSERT_VALUES_EQUAL(0, AtomicGet(RepliesCount)); UNIT_ASSERT_VALUES_EQUAL(0, Session->GetInFlight()); UNIT_ASSERT_VALUES_EQUAL(1, Errors); - EMessageStatus result = LastError; + EMessageStatus result = LastError; ResetCounters(); - return result; -} - -void TExampleClient::WaitForError(EMessageStatus status) { - EMessageStatus error = WaitForError(); - UNIT_ASSERT_VALUES_EQUAL(status, error); + return result; } +void TExampleClient::WaitForError(EMessageStatus status) { + EMessageStatus error = WaitForError(); + UNIT_ASSERT_VALUES_EQUAL(status, error); +} + void TExampleClient::SendMessagesWaitReplies(size_t count, const TNetAddr* addr) { SendMessages(count, addr); WaitReplies(); |