diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 11:46:45 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 11:46:45 +0200 |
commit | e3da13d1fe9ad623e05aec1977c813e7da37cedd (patch) | |
tree | 79266f2fba9e50c6e6d9d38d3baeff2d6a8e1e0e /examples/imapresource/tests/imapserverproxytest.cpp | |
parent | ab7c366b27a07cc31730dc7fb696cdc2519bb8d3 (diff) | |
download | sink-e3da13d1fe9ad623e05aec1977c813e7da37cedd.tar.gz sink-e3da13d1fe9ad623e05aec1977c813e7da37cedd.zip |
Fail quickly if the backend is not available
Diffstat (limited to 'examples/imapresource/tests/imapserverproxytest.cpp')
-rw-r--r-- | examples/imapresource/tests/imapserverproxytest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/imapresource/tests/imapserverproxytest.cpp b/examples/imapresource/tests/imapserverproxytest.cpp index e32298c..6819685 100644 --- a/examples/imapresource/tests/imapserverproxytest.cpp +++ b/examples/imapresource/tests/imapserverproxytest.cpp | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | #include <QString> | 3 | #include <QString> |
4 | #include <KMime/Message> | 4 | #include <KMime/Message> |
5 | #include <QTcpSocket> | ||
5 | 6 | ||
6 | #include "../imapserverproxy.h" | 7 | #include "../imapserverproxy.h" |
7 | 8 | ||
@@ -22,6 +23,9 @@ class ImapServerProxyTest : public QObject | |||
22 | private slots: | 23 | private slots: |
23 | void initTestCase() | 24 | void initTestCase() |
24 | { | 25 | { |
26 | QTcpSocket socket; | ||
27 | socket.connectToHost("localhost", 993); | ||
28 | QVERIFY(socket.waitForConnected(200)); | ||
25 | Sink::Log::setDebugOutputLevel(Sink::Log::Trace); | 29 | Sink::Log::setDebugOutputLevel(Sink::Log::Trace); |
26 | system("resetmailbox.sh"); | 30 | system("resetmailbox.sh"); |
27 | } | 31 | } |