diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2011-05-18 13:13:03 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2011-05-18 13:13:03 (GMT) |
commit | 1aeccd6bd14d7d9e098e333715f63e0225cd4a54 (patch) | |
tree | e044710affc72da81cace433d6db776034e80a28 /tests | |
parent | 1485cb0ff66dba95015d4451d812124b9ab27170 (diff) | |
parent | 1eff8e70fb9154c3ee96aefd8f6fd44429b117fa (diff) | |
download | Qt-1aeccd6bd14d7d9e098e333715f63e0225cd4a54.zip Qt-1aeccd6bd14d7d9e098e333715f63e0225cd4a54.tar.gz Qt-1aeccd6bd14d7d9e098e333715f63e0225cd4a54.tar.bz2 |
Merge remote-tracking branch 'earth-staging/master'
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp b/tests/auto/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp index 82a4193..b04556c 100644 --- a/tests/auto/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp +++ b/tests/auto/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp @@ -146,6 +146,10 @@ void tst_QNetworkProxyFactory::systemProxyForQuery() const void tst_QNetworkProxyFactory::fromConfigurations() { QNetworkConfigurationManager manager; + //update is done to get the active / discovered states + manager.updateConfigurations(); + connect(&manager, SIGNAL(updateCompleted()), &QTestEventLoop::instance(), SLOT(exitLoop())); + QTestEventLoop::instance().enterLoop(10); QList<QNetworkProxy> proxies; QUrl url(QLatin1String("http://qt.nokia.com")); //get from known configurations @@ -233,8 +237,6 @@ void tst_QNetworkProxyFactory::inNetworkAccessManager() foreach (QNetworkProxy proxy, proxies) { qDebug() << formatProxyName(proxy); } - if (config.type() != QNetworkConfiguration::InternetAccessPoint) - QEXPECT_FAIL("","QNetworkProxyFactory::systemProxyForQuery doesn't work for service networks yet", Continue); QCOMPARE(factory->returnedList, proxies); } |