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/imapmailsynctest.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/imapmailsynctest.cpp')
-rw-r--r-- | examples/imapresource/tests/imapmailsynctest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/imapresource/tests/imapmailsynctest.cpp b/examples/imapresource/tests/imapmailsynctest.cpp index f908412..7cdb103 100644 --- a/examples/imapresource/tests/imapmailsynctest.cpp +++ b/examples/imapresource/tests/imapmailsynctest.cpp | |||
@@ -64,7 +64,8 @@ protected: | |||
64 | Sink::ApplicationDomain::SinkResource createFaultyResource() Q_DECL_OVERRIDE | 64 | Sink::ApplicationDomain::SinkResource createFaultyResource() Q_DECL_OVERRIDE |
65 | { | 65 | { |
66 | auto resource = ApplicationDomain::ImapResource::create("account1"); | 66 | auto resource = ApplicationDomain::ImapResource::create("account1"); |
67 | resource.setProperty("server", "foobar"); | 67 | //Using a bogus ip instead of a bogus hostname avoids getting stuck in the hostname lookup |
68 | resource.setProperty("server", "111.111.1.1"); | ||
68 | resource.setProperty("port", 993); | 69 | resource.setProperty("port", 993); |
69 | resource.setProperty("username", "doe"); | 70 | resource.setProperty("username", "doe"); |
70 | resource.setProperty("password", "doe"); | 71 | resource.setProperty("password", "doe"); |