diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-11 11:55:29 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-11 11:55:29 +0200 |
commit | 3a3118e768e1447dc7524328e84b8d7faef81fe1 (patch) | |
tree | af5582170ed6164fffc9365f34b17bf449c0db40 /examples/imapresource/tests/imapmailtest.cpp | |
parent | f9379318d801df204cc50385c5eca1f28e91755e (diff) | |
parent | ce2fd2666f084eebe443598f6f3740a02913091e (diff) | |
download | sink-3a3118e768e1447dc7524328e84b8d7faef81fe1.tar.gz sink-3a3118e768e1447dc7524328e84b8d7faef81fe1.zip |
Merge branch 'feature/notifications' into develop
Diffstat (limited to 'examples/imapresource/tests/imapmailtest.cpp')
-rw-r--r-- | examples/imapresource/tests/imapmailtest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/imapresource/tests/imapmailtest.cpp b/examples/imapresource/tests/imapmailtest.cpp index c94a731..e6f41f4 100644 --- a/examples/imapresource/tests/imapmailtest.cpp +++ b/examples/imapresource/tests/imapmailtest.cpp | |||
@@ -1,4 +1,5 @@ | |||
1 | #include <QtTest> | 1 | #include <QtTest> |
2 | #include <QTcpSocket> | ||
2 | 3 | ||
3 | #include <tests/mailtest.h> | 4 | #include <tests/mailtest.h> |
4 | 5 | ||
@@ -18,6 +19,13 @@ class ImapMailTest : public Sink::MailTest | |||
18 | Q_OBJECT | 19 | Q_OBJECT |
19 | 20 | ||
20 | protected: | 21 | protected: |
22 | bool isBackendAvailable() Q_DECL_OVERRIDE | ||
23 | { | ||
24 | QTcpSocket socket; | ||
25 | socket.connectToHost("localhost", 993); | ||
26 | return socket.waitForConnected(200); | ||
27 | } | ||
28 | |||
21 | void resetTestEnvironment() Q_DECL_OVERRIDE | 29 | void resetTestEnvironment() Q_DECL_OVERRIDE |
22 | { | 30 | { |
23 | system("resetmailbox.sh"); | 31 | system("resetmailbox.sh"); |