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/imapmailsynctest.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/imapmailsynctest.cpp')
-rw-r--r-- | examples/imapresource/tests/imapmailsynctest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/imapresource/tests/imapmailsynctest.cpp b/examples/imapresource/tests/imapmailsynctest.cpp index 968cde5..fcc659d 100644 --- a/examples/imapresource/tests/imapmailsynctest.cpp +++ b/examples/imapresource/tests/imapmailsynctest.cpp | |||
@@ -17,6 +17,7 @@ | |||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
18 | */ | 18 | */ |
19 | #include <QtTest> | 19 | #include <QtTest> |
20 | #include <QTcpSocket> | ||
20 | 21 | ||
21 | #include <tests/mailsynctest.h> | 22 | #include <tests/mailsynctest.h> |
22 | #include "../imapresource.h" | 23 | #include "../imapresource.h" |
@@ -38,6 +39,13 @@ class ImapMailSyncTest : public Sink::MailSyncTest | |||
38 | Q_OBJECT | 39 | Q_OBJECT |
39 | 40 | ||
40 | protected: | 41 | protected: |
42 | bool isBackendAvailable() Q_DECL_OVERRIDE | ||
43 | { | ||
44 | QTcpSocket socket; | ||
45 | socket.connectToHost("localhost", 993); | ||
46 | return socket.waitForConnected(200); | ||
47 | } | ||
48 | |||
41 | void resetTestEnvironment() Q_DECL_OVERRIDE | 49 | void resetTestEnvironment() Q_DECL_OVERRIDE |
42 | { | 50 | { |
43 | system("resetmailbox.sh"); | 51 | system("resetmailbox.sh"); |