diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-08-22 22:34:07 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-08-22 22:34:07 +0200 |
commit | 1cf07ee56315af86cadccc977948e9ed1d51da1a (patch) | |
tree | 7f7bf390f1c0b2d2859164e079b61c33b6548c63 /tests/quotest.cpp | |
parent | 90e940c9b398aa26d50095b2ca6905d0815f6412 (diff) | |
download | libquotient-1cf07ee56315af86cadccc977948e9ed1d51da1a.tar.gz libquotient-1cf07ee56315af86cadccc977948e9ed1d51da1a.zip |
quotest: fix FTBFS after a sloppy cherry-pick
Diffstat (limited to 'tests/quotest.cpp')
-rw-r--r-- | tests/quotest.cpp | 9 |
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; } |