aboutsummaryrefslogtreecommitdiff
path: root/autotests
diff options
context:
space:
mode:
Diffstat (limited to 'autotests')
-rw-r--r--autotests/testolmaccount.cpp3
-rw-r--r--autotests/testolmutility.cpp6
2 files changed, 3 insertions, 6 deletions
diff --git a/autotests/testolmaccount.cpp b/autotests/testolmaccount.cpp
index 56532698..53a0c955 100644
--- a/autotests/testolmaccount.cpp
+++ b/autotests/testolmaccount.cpp
@@ -60,8 +60,7 @@ void TestOlmAccount::signatureValid()
QOlmUtility utility;
const auto identityKeys = olmAccount.identityKeys();
const auto ed25519Key = identityKeys.ed25519;
- const auto verify = utility.ed25519Verify(ed25519Key, message, signature);
- QVERIFY(verify.value_or(false));
+ QVERIFY(utility.ed25519Verify(ed25519Key, message, signature));
}
void TestOlmAccount::oneTimeKeysValid()
diff --git a/autotests/testolmutility.cpp b/autotests/testolmutility.cpp
index 64ceb3e7..4de5afdf 100644
--- a/autotests/testolmutility.cpp
+++ b/autotests/testolmutility.cpp
@@ -78,10 +78,8 @@ void TestOlmUtility::verifySignedOneTimeKey()
delete[](reinterpret_cast<uint8_t *>(utility));
QOlmUtility utility2;
- auto res2 =
- utility2
- .ed25519Verify(aliceOlm.identityKeys().ed25519, msg, signatureBuf1)
- .value_or(false);
+ auto res2 = utility2.ed25519Verify(aliceOlm.identityKeys().ed25519, msg,
+ signatureBuf1);
//QCOMPARE(std::string(olm_utility_last_error(utility)), "SUCCESS");
QVERIFY(res2);