diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-14 00:27:06 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-14 00:27:34 +0200 |
commit | 7db013780b5318cb383c49caef4f77d39d440ea9 (patch) | |
tree | b090e6634fb6f4cddddec0ae5e106d8931dc4555 /examples/imapresource/tests/imapserverproxytest.cpp | |
parent | a3c3fb61e08523a563ce3cba86dc50c9c5fc2c5d (diff) | |
download | sink-7db013780b5318cb383c49caef4f77d39d440ea9.tar.gz sink-7db013780b5318cb383c49caef4f77d39d440ea9.zip |
Ping the server first to make sure it's available.
This significantely reduces the time required to execute the tests.
Diffstat (limited to 'examples/imapresource/tests/imapserverproxytest.cpp')
-rw-r--r-- | examples/imapresource/tests/imapserverproxytest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/imapresource/tests/imapserverproxytest.cpp b/examples/imapresource/tests/imapserverproxytest.cpp index ef695b3..80dcbea 100644 --- a/examples/imapresource/tests/imapserverproxytest.cpp +++ b/examples/imapresource/tests/imapserverproxytest.cpp | |||
@@ -25,6 +25,7 @@ class ImapServerProxyTest : public QObject | |||
25 | private slots: | 25 | private slots: |
26 | void initTestCase() | 26 | void initTestCase() |
27 | { | 27 | { |
28 | Sink::Test::initTest(); | ||
28 | QTcpSocket socket; | 29 | QTcpSocket socket; |
29 | socket.connectToHost("localhost", 993); | 30 | socket.connectToHost("localhost", 993); |
30 | QVERIFY(socket.waitForConnected(200)); | 31 | QVERIFY(socket.waitForConnected(200)); |