aboutsummaryrefslogtreecommitdiff
path: root/autotests
diff options
context:
space:
mode:
Diffstat (limited to 'autotests')
-rw-r--r--autotests/testolmaccount.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/autotests/testolmaccount.cpp b/autotests/testolmaccount.cpp
index 9195bb62..192c97ac 100644
--- a/autotests/testolmaccount.cpp
+++ b/autotests/testolmaccount.cpp
@@ -300,13 +300,14 @@ void TestOlmAccount::queryTest()
QCOMPARE(aliceRes->oneTimeKeyCounts()["signed_curve25519"], 1);
});
QSignalSpy spy(aliceRes, &BaseJob::result);
- bob->run(aliceRes);
+ alice->run(aliceRes);
QVERIFY(spy.wait(10000));
auto bobOlm = bob->olmAccount();
bobOlm->generateOneTimeKeys(1);
- auto bobRes = aliceOlm->createUploadKeyRequest(aliceOlm->oneTimeKeys());
+ auto bobRes = bobOlm->createUploadKeyRequest(aliceOlm->oneTimeKeys());
connect(bobRes, &BaseJob::result, this, [bobRes] {
+
QCOMPARE(bobRes->oneTimeKeyCounts().size(), 1);
QCOMPARE(bobRes->oneTimeKeyCounts()["signed_curve25519"], 1);
});
@@ -347,7 +348,6 @@ void TestOlmAccount::queryTest()
QVERIFY(bobDevices.size() > 0);
auto devKeys = bobDevices[alice->deviceId()];
- qDebug() << bobDevices.keys();
QCOMPARE(devKeys.userId, alice->userId());
QCOMPARE(devKeys.deviceId, alice->deviceId());
QCOMPARE(devKeys.keys, aliceOlm->deviceKeys().keys);