From 5319f16ba723e654eaf347f7d5d6957e57bd6d32 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 3 Aug 2020 19:41:58 +0200 Subject: quotest: clean up the room state after testing --- tests/quotest.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/quotest.cpp b/tests/quotest.cpp index 622a8cfb..dc84364f 100644 --- a/tests/quotest.cpp +++ b/tests/quotest.cpp @@ -772,6 +772,11 @@ TEST_IMPL(visitResources) void TestManager::conclude() { + // Clean up the room (best effort) + auto* room = testSuite->room(); + room->setTopic({}); + room->localUser()->rename({}); + QString succeededRec { QString::number(succeeded.size()) % " of " % QString::number(succeeded.size() + failed.size() + running.size()) @@ -800,7 +805,6 @@ void TestManager::conclude() // targetRoom->postHtmlText(...) // .then(this, &TestManager::finalize); // Qt-style or // .then([this] { finalize(); }); // STL-style - auto* room = testSuite->room(); auto txnId = room->postHtmlText(plainReport, htmlReport); // Now just wait until all the pending events reach the server connectUntil(room, &Room::messageSent, this, [this, room, plainReport] { -- cgit v1.2.3