summaryrefslogtreecommitdiffstats
path: root/tests/auto/qiodevice
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-05-19 11:29:39 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-05-19 13:11:37 (GMT)
commitbc5cf95c9622fee5bdcc97736dee11923aa9daf4 (patch)
tree069cedad1c2854ec2f837df662eee88f07ba78d8 /tests/auto/qiodevice
parent6402c393764c884e3e113a2bf155bf38ebcd9aa1 (diff)
downloadQt-bc5cf95c9622fee5bdcc97736dee11923aa9daf4.zip
Qt-bc5cf95c9622fee5bdcc97736dee11923aa9daf4.tar.gz
Qt-bc5cf95c9622fee5bdcc97736dee11923aa9daf4.tar.bz2
Use QtNetworkSettings, don't hard code IMAP host name. This should fix failures in Berlin.
Diffstat (limited to 'tests/auto/qiodevice')
-rw-r--r--tests/auto/qiodevice/tst_qiodevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qiodevice/tst_qiodevice.cpp b/tests/auto/qiodevice/tst_qiodevice.cpp
index 03a0665..367a2e0 100644
--- a/tests/auto/qiodevice/tst_qiodevice.cpp
+++ b/tests/auto/qiodevice/tst_qiodevice.cpp
@@ -120,7 +120,7 @@ void tst_QIODevice::constructing_QTcpSocket()
QVERIFY(!device->isOpen());
- socket.connectToHost("imap.troll.no", 143);
+ socket.connectToHost(QtNetworkSettings::serverName(), 143);
QVERIFY(socket.waitForConnected(5000));
QVERIFY(device->isOpen());
@@ -134,7 +134,7 @@ void tst_QIODevice::constructing_QTcpSocket()
QCOMPARE(socket.pos(), qlonglong(0));
socket.close();
- socket.connectToHost("imap.troll.no", 143);
+ socket.connectToHost(QtNetworkSettings::serverName(), 143);
QVERIFY(socket.waitForConnected(5000));
while (!device->canReadLine())