aboutsummaryrefslogtreecommitdiff
path: root/autotests/testolmaccount.cpp
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-05-06 01:08:53 +0200
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commit0a75a095665101d4ffcbec10b43633eee5a0d6d3 (patch)
treebf88e94bf0b454fa8d409acd49c1cdc3f4658d43 /autotests/testolmaccount.cpp
parentc2836e007e2d46c0c20270b99ede5b78d2c7170b (diff)
downloadlibquotient-0a75a095665101d4ffcbec10b43633eee5a0d6d3.tar.gz
libquotient-0a75a095665101d4ffcbec10b43633eee5a0d6d3.zip
Fix everything
Diffstat (limited to 'autotests/testolmaccount.cpp')
-rw-r--r--autotests/testolmaccount.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/autotests/testolmaccount.cpp b/autotests/testolmaccount.cpp
index eb44791a..1c296db9 100644
--- a/autotests/testolmaccount.cpp
+++ b/autotests/testolmaccount.cpp
@@ -6,6 +6,7 @@
#include "crypto/qolmaccount.h"
#include "connection.h"
#include "events/encryptedfile.h"
+#include "networkaccessmanager.h"
using namespace Quotient;
@@ -164,8 +165,8 @@ void TestOlmAccount::encryptedFile()
}
#define CREATE_CONNECTION(VAR, USERNAME, SECRET, DEVICE_NAME) \
+ NetworkAccessManager::instance()->ignoreSslErrors(true); \
auto VAR = std::make_shared<Connection>(); \
- VAR->ignoreSslErrors(true); \
(VAR) ->resolveServer("@alice:localhost:" + QString::number(443)); \
connect( (VAR) .get(), &Connection::loginFlowsChanged, this, [this, VAR ] () { \
(VAR) ->loginWithPassword( (USERNAME) , SECRET , DEVICE_NAME , ""); \