aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-08-22 22:34:07 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-08-22 22:34:07 +0200
commit1cf07ee56315af86cadccc977948e9ed1d51da1a (patch)
tree7f7bf390f1c0b2d2859164e079b61c33b6548c63
parent90e940c9b398aa26d50095b2ca6905d0815f6412 (diff)
downloadlibquotient-1cf07ee56315af86cadccc977948e9ed1d51da1a.tar.gz
libquotient-1cf07ee56315af86cadccc977948e9ed1d51da1a.zip
quotest: fix FTBFS after a sloppy cherry-pick
-rw-r--r--tests/quotest.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/quotest.cpp b/tests/quotest.cpp
index f14edcc0..3a32da69 100644
--- a/tests/quotest.cpp
+++ b/tests/quotest.cpp
@@ -495,12 +495,9 @@ TEST_IMPL(changeName)
const auto& newName = connection()->generateTxnId(); // See setTopic()
clog << "Renaming the user to " << newName.toStdString() << endl;
localUser->rename(newName);
- connectUntil(localUser, &User::nameChanged, this,
- [this, thisTest, newName](const QString& emittedName, QString,
- const Room* r) {
- if (r != nullptr)
- return false;
- FINISH_TEST(emittedName == newName);
+ connectUntil(localUser, &User::defaultNameChanged, this,
+ [this, thisTest, localUser, newName] {
+ FINISH_TEST(localUser->name() == newName);
});
return false;
}