From 1cf07ee56315af86cadccc977948e9ed1d51da1a Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 22 Aug 2020 22:34:07 +0200 Subject: quotest: fix FTBFS after a sloppy cherry-pick --- tests/quotest.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests/quotest.cpp') 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; } -- cgit v1.2.3