diff options
-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; } |