summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2012-10-31 16:54:18 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-31 17:26:44 +0100
commit8c4d02f97affdca88e25de894788124033133d87 (patch)
tree8e5923edf725881fd991f8a4433a0379ff021a85 /tests/auto
parent03b9b423b07a21916b8204047dbc34bf74f914fe (diff)
Use qt-project.org in tst_hostinfo - qt.nokia.com changed IP address.
qt.nokia.com is also going to disapper in future, so I think it is better to use qt-project.org. Change-Id: Ice550fe657a33609472b8e4b8630d7649f9c9fb5 Reviewed-by: Shane Kearns <shane.kearns@accenture.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp b/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp
index 25ea5ca76e..f4c585c594 100644
--- a/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp
+++ b/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp
@@ -430,10 +430,10 @@ class LookupThread : public QThread
protected:
inline void run()
{
- QHostInfo info = QHostInfo::fromName("qt.nokia.com");
+ QHostInfo info = QHostInfo::fromName("qt-project.org");
QCOMPARE(info.error(), QHostInfo::NoError);
QVERIFY(info.addresses().count() > 0);
- QCOMPARE(info.addresses().at(0).toString(), QString("87.238.50.178"));
+ QCOMPARE(info.addresses().at(0).toString(), QString("87.238.53.172"));
}
};
@@ -468,7 +468,7 @@ public:
void LookupReceiver::start()
{
for (int i=0;i<numrequests;i++)
- QHostInfo::lookupHost(QString("qt.nokia.com"), this, SLOT(resultsReady(QHostInfo)));
+ QHostInfo::lookupHost(QString("qt-project.org"), this, SLOT(resultsReady(QHostInfo)));
}
void LookupReceiver::resultsReady(const QHostInfo &info)
@@ -499,7 +499,7 @@ void tst_QHostInfo::threadSafetyAsynchronousAPI()
QVERIFY(threads.at(k)->wait(60000));
foreach (LookupReceiver* receiver, receivers) {
QCOMPARE(receiver->result.error(), QHostInfo::NoError);
- QCOMPARE(receiver->result.addresses().at(0).toString(), QString("87.238.50.178"));
+ QCOMPARE(receiver->result.addresses().at(0).toString(), QString("87.238.53.172"));
QCOMPARE(receiver->numrequests, 0);
}
}
@@ -536,7 +536,7 @@ void tst_QHostInfo::multipleDifferentLookups_data()
void tst_QHostInfo::multipleDifferentLookups()
{
QStringList hostnameList;
- hostnameList << "www.ovi.com" << "www.nokia.com" << "qt.nokia.com" << "www.trolltech.com" << "troll.no"
+ hostnameList << "www.ovi.com" << "www.nokia.com" << "qt-project.org" << "www.trolltech.com" << "troll.no"
<< "www.qtcentre.org" << "forum.nokia.com" << "www.nokia.com" << "wiki.forum.nokia.com"
<< "www.nokia.com" << "nokia.de" << "127.0.0.1" << "----";
@@ -610,7 +610,7 @@ void tst_QHostInfo::abortHostLookup()
lookupsDoneCounter = 0;
bool valid = false;
int id = -1;
- QHostInfo result = qt_qhostinfo_lookup("qt.nokia.com", this, SLOT(resultsReady(QHostInfo)), &valid, &id);
+ QHostInfo result = qt_qhostinfo_lookup("qt-project.org", this, SLOT(resultsReady(QHostInfo)), &valid, &id);
QVERIFY(!valid);
//it is assumed that the DNS request/response in the backend is slower than it takes to call abort
QHostInfo::abortHostLookup(id);
@@ -637,7 +637,7 @@ void tst_QHostInfo::abortHostLookupInDifferentThread()
lookupsDoneCounter = 0;
bool valid = false;
int id = -1;
- QHostInfo result = qt_qhostinfo_lookup("qt.nokia.com", this, SLOT(resultsReady(QHostInfo)), &valid, &id);
+ QHostInfo result = qt_qhostinfo_lookup("qt-project.org", this, SLOT(resultsReady(QHostInfo)), &valid, &id);
QVERIFY(!valid);
QThread thread;
LookupAborter aborter;