diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-28 11:24:59 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-28 11:24:59 +0100 |
commit | 6ee20f1507b12fcb9556717eeb2784c7530ec588 (patch) | |
tree | 6e3bfb6c0167bbb384257e9e5069df57e1ebacb1 /tests | |
parent | 12c37cf3ce2aa397050fff6ce846d557524a3fe7 (diff) | |
download | libquotient-6ee20f1507b12fcb9556717eeb2784c7530ec588.tar.gz libquotient-6ee20f1507b12fcb9556717eeb2784c7530ec588.zip |
Cleanup and clang-tidy/clazy fixes
(cherry picked from commit 56c1db077b5da653c230432abc6c746318a77bed)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/quotest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/quotest.cpp b/tests/quotest.cpp index be95ee7d..edf0e014 100644 --- a/tests/quotest.cpp +++ b/tests/quotest.cpp @@ -186,7 +186,7 @@ TestManager::TestManager(int& argc, char** argv) connect(c, &Connection::connected, this, &TestManager::setupAndRun); connect(c, &Connection::resolveError, this, - [this](const QString& error) { + [](const QString& error) { clog << "Failed to resolve the server: " << error.toStdString() << endl; QCoreApplication::exit(-2); @@ -268,7 +268,7 @@ void TestManager::onNewRoom(Room* r) << endl; connect(r, &Room::aboutToAddNewMessages, r, [r](RoomEventsRange timeline) { clog << timeline.size() << " new event(s) in room " - << r->canonicalAlias().toStdString() << endl; + << r->objectName().toStdString() << endl; }); } @@ -319,13 +319,13 @@ TEST_IMPL(loadMembers) // It's not exactly correct because an arbitrary server might not support // lazy loading; but in the absence of capabilities framework we assume // it does. - if (r->memberNames().size() >= r->joinedCount()) { + if (r->users().size() >= r->joinedCount()) { clog << "Lazy loading doesn't seem to be enabled" << endl; FAIL_TEST(); } r->setDisplayed(); connect(r, &Room::allMembersLoaded, this, [this, thisTest, r] { - FINISH_TEST(r->memberNames().size() >= r->joinedCount()); + FINISH_TEST(r->users().size() >= r->joinedCount()); }); return false; } |