aboutsummaryrefslogtreecommitdiff
path: root/tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-08-16 21:00:15 +0200
committerLinus Jahn <lnj@kaidan.im>2023-01-03 22:05:54 +0100
commitb17284ee7d674416e0d11f1699f73fcc606262d4 (patch)
tree86597f2bc2a1ed2d257e0cbf8e7de1ca54080c08 /tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp
parent3271c6642439d4d3c0d8c634e2b3f4cf17b908a0 (diff)
downloadqxmpp-b17284ee7d674416e0d11f1699f73fcc606262d4.tar.gz
Introduce QXmppTask & QXmppPromise
Closes #502. Co-authored-by: Jonah BrĂ¼chert <jbb@kaidan.im>
Diffstat (limited to 'tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp')
-rw-r--r--tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp b/tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp
index 055236ed..7c26c6f6 100644
--- a/tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp
+++ b/tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp
@@ -30,7 +30,7 @@ void tst_QXmppDiscoveryManager::testInfo()
</query>
</iq>)");
- const auto info = expectFutureVariant<QXmppDiscoveryIq>(future);
+ const auto info = expectFutureVariant<QXmppDiscoveryIq>(future.toFuture(this));
const QStringList expFeatures = { "http://jabber.org/protocol/pubsub", "urn:xmpp:mix:core:1" };
QCOMPARE(info.features(), expFeatures);
@@ -57,7 +57,7 @@ void tst_QXmppDiscoveryManager::testItems()
</query>
</iq>)");
- const auto items = expectFutureVariant<QList<QXmppDiscoveryIq::Item>>(future);
+ const auto items = expectFutureVariant<QList<QXmppDiscoveryIq::Item>>(future.toFuture(this));
const QStringList expFeatures = { "http://jabber.org/protocol/pubsub", "urn:xmpp:mix:core:1" };
QCOMPARE(items.size(), 4);