aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/test/helper/example.cpp
diff options
context:
space:
mode:
authornohttp <nohttp@yandex-team.ru>2022-02-10 16:50:31 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:31 +0300
commitb1683877992937b1040baa621c4b216ed8405729 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/messagebus/test/helper/example.cpp
parentdbdd851418e92f8821ee1b1041352d66e3bde170 (diff)
downloadydb-b1683877992937b1040baa621c4b216ed8405729.tar.gz
Restoring authorship annotation for <nohttp@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/messagebus/test/helper/example.cpp')
-rw-r--r--library/cpp/messagebus/test/helper/example.cpp16
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 5ee0ec3958..7c6d704042 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;
+ return result;
+}
+
+void TExampleClient::WaitForError(EMessageStatus status) {
+ EMessageStatus error = WaitForError();
+ UNIT_ASSERT_VALUES_EQUAL(status, error);
}
-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();