diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-11-28 14:13:03 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-11-28 14:13:03 +0100 |
commit | 2a9b02ff6d2279f7cd301ae1f397d275afa66922 (patch) | |
tree | a5089fb9b7ec31cebc248c9617c664e839dec641 /examples/imapresource/tests/imapmailtest.cpp | |
parent | 7ec52003ec7f06cbb8897cd70e8d952ead3ca15f (diff) | |
download | sink-2a9b02ff6d2279f7cd301ae1f397d275afa66922.tar.gz sink-2a9b02ff6d2279f7cd301ae1f397d275afa66922.zip |
Fixed imap tests
Adjust to cyrus imap settings and use explicit encryption setting.
Diffstat (limited to 'examples/imapresource/tests/imapmailtest.cpp')
-rw-r--r-- | examples/imapresource/tests/imapmailtest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/imapresource/tests/imapmailtest.cpp b/examples/imapresource/tests/imapmailtest.cpp index 60ec1bf..6616811 100644 --- a/examples/imapresource/tests/imapmailtest.cpp +++ b/examples/imapresource/tests/imapmailtest.cpp | |||
@@ -23,7 +23,7 @@ protected: | |||
23 | bool isBackendAvailable() Q_DECL_OVERRIDE | 23 | bool isBackendAvailable() Q_DECL_OVERRIDE |
24 | { | 24 | { |
25 | QTcpSocket socket; | 25 | QTcpSocket socket; |
26 | socket.connectToHost("localhost", 993); | 26 | socket.connectToHost("localhost", 143); |
27 | return socket.waitForConnected(200); | 27 | return socket.waitForConnected(200); |
28 | } | 28 | } |
29 | 29 | ||
@@ -36,7 +36,7 @@ protected: | |||
36 | { | 36 | { |
37 | auto resource = ApplicationDomain::ImapResource::create("account1"); | 37 | auto resource = ApplicationDomain::ImapResource::create("account1"); |
38 | resource.setProperty("server", "localhost"); | 38 | resource.setProperty("server", "localhost"); |
39 | resource.setProperty("port", 993); | 39 | resource.setProperty("port", 143); |
40 | resource.setProperty("username", "doe"); | 40 | resource.setProperty("username", "doe"); |
41 | Sink::SecretStore::instance().insert(resource.identifier(), "doe"); | 41 | Sink::SecretStore::instance().insert(resource.identifier(), "doe"); |
42 | return resource; | 42 | return resource; |