diff options
Diffstat (limited to 'autotests/testolmutility.cpp')
-rw-r--r-- | autotests/testolmutility.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/autotests/testolmutility.cpp b/autotests/testolmutility.cpp index b4532c8d..5b67c805 100644 --- a/autotests/testolmutility.cpp +++ b/autotests/testolmutility.cpp @@ -6,6 +6,8 @@ #include "e2ee/qolmaccount.h" #include "e2ee/qolmutility.h" +#include <olm/olm.h> + using namespace Quotient; void TestOlmUtility::canonicalJSON() @@ -79,10 +81,13 @@ void TestOlmUtility::verifySignedOneTimeKey() delete[](reinterpret_cast<uint8_t *>(utility)); QOlmUtility utility2; - auto res2 = std::get<bool>(utility2.ed25519Verify(aliceOlm.identityKeys().ed25519, msg, signatureBuf1)); + auto res2 = + utility2 + .ed25519Verify(aliceOlm.identityKeys().ed25519, msg, signatureBuf1) + .value_or(false); //QCOMPARE(std::string(olm_utility_last_error(utility)), "SUCCESS"); - QCOMPARE(res2, true); + QVERIFY(res2); } void TestOlmUtility::validUploadKeysRequest() |