diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-21 14:24:27 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-21 14:24:27 +0100 |
commit | ee7def182008da0b22d53c2bfc8809c398412058 (patch) | |
tree | f5c4683a0523a31d0c76bb8a7030eb9eb031f51c /examples/imapresource/tests/imapserverproxytest.cpp | |
parent | 09482914993a8d06277c3604c0ac34026e782674 (diff) | |
download | sink-ee7def182008da0b22d53c2bfc8809c398412058.tar.gz sink-ee7def182008da0b22d53c2bfc8809c398412058.zip |
Avoid getting stuck in the hostname lookup during tests.
Diffstat (limited to 'examples/imapresource/tests/imapserverproxytest.cpp')
-rw-r--r-- | examples/imapresource/tests/imapserverproxytest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/imapresource/tests/imapserverproxytest.cpp b/examples/imapresource/tests/imapserverproxytest.cpp index ec5df49..476066d 100644 --- a/examples/imapresource/tests/imapserverproxytest.cpp +++ b/examples/imapresource/tests/imapserverproxytest.cpp | |||
@@ -51,7 +51,8 @@ private slots: | |||
51 | 51 | ||
52 | void testLoginFailure() | 52 | void testLoginFailure() |
53 | { | 53 | { |
54 | ImapServerProxy imap("foobar", 993); | 54 | //Using a bogus ip instead of a bogus hostname avoids getting stuck in the hostname lookup |
55 | ImapServerProxy imap("111.111.1.1", 993); | ||
55 | VERIFYEXEC_FAIL(imap.login("doe", "doe")); | 56 | VERIFYEXEC_FAIL(imap.login("doe", "doe")); |
56 | } | 57 | } |
57 | 58 | ||