diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-05-06 01:08:53 +0200 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-01 21:34:52 +0100 |
commit | 0a75a095665101d4ffcbec10b43633eee5a0d6d3 (patch) | |
tree | bf88e94bf0b454fa8d409acd49c1cdc3f4658d43 /autotests/testolmaccount.cpp | |
parent | c2836e007e2d46c0c20270b99ede5b78d2c7170b (diff) | |
download | libquotient-0a75a095665101d4ffcbec10b43633eee5a0d6d3.tar.gz libquotient-0a75a095665101d4ffcbec10b43633eee5a0d6d3.zip |
Fix everything
Diffstat (limited to 'autotests/testolmaccount.cpp')
-rw-r--r-- | autotests/testolmaccount.cpp | 3 |
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 , ""); \ |