aboutsummaryrefslogtreecommitdiff
path: root/tests/quotest.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-07 20:16:59 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-07 21:23:59 +0100
commit8fc5de0529458851a4cd5c042b2b2f2543068c22 (patch)
tree62c93ad76bb54ef93e613b61639d583ea672a15a /tests/quotest.cpp
parent23f2bb6ca3c0c44fd8972902b4d9b5d6c23d52e7 (diff)
downloadlibquotient-8fc5de0529458851a4cd5c042b2b2f2543068c22.tar.gz
libquotient-8fc5de0529458851a4cd5c042b2b2f2543068c22.zip
Prefer connecting to BaseJob::result(), not finished()
...because finished() includes abandoning and should only be relevant when lifecycle issues are involved. (cherry picked from commit 90d41b697af39253483d9bcca4e57b11d2197112)
Diffstat (limited to 'tests/quotest.cpp')
-rw-r--r--tests/quotest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/quotest.cpp b/tests/quotest.cpp
index a0bad753..7ab7365f 100644
--- a/tests/quotest.cpp
+++ b/tests/quotest.cpp
@@ -828,7 +828,7 @@ void TestManager::conclude()
// .then(this, &TestManager::finalize); // Qt-style or
// .then([this] { finalize(); }); // STL-style
auto* job = room->leaveRoom();
- connect(job, &BaseJob::finished, this, [this, job,plainReport] {
+ connect(job, &BaseJob::result, this, [this, job,plainReport] {
Q_ASSERT(job->status().good());
finalize();
// Still flying, as the exit() connection in finalize() is queued