aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/quotest.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/quotest.cpp b/tests/quotest.cpp
index 0a25dbc1..f3a09e41 100644
--- a/tests/quotest.cpp
+++ b/tests/quotest.cpp
@@ -384,12 +384,16 @@ TEST_IMPL(setTopic)
const auto newTopic = c->generateTxnId(); // Just a way to get a unique id
targetRoom->setTopic(newTopic);
- connectUntil(targetRoom, &Room::topicChanged, this,
- [this, newTopic] {
- FINISH_TEST("State setting test",
- targetRoom->topic() == newTopic);
- return true;
- });
+ connectUntil(targetRoom, &Room::topicChanged, this, [this, newTopic] {
+ if (targetRoom->topic() == newTopic)
+ FINISH_TEST("State setting test", true);
+ else {
+ cout << "Requested topic was " << newTopic.toStdString() << ", "
+ << targetRoom->topic().toStdString() << " arrived instead"
+ << endl;
+ }
+ return true;
+ });
}
TEST_IMPL(sendAndRedact)