Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix timeout in network timeout tests
  • Loading branch information
nyalldawson committed Feb 1, 2019
1 parent d0c24ed commit 18941a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/core/testqgsnetworkaccessmanager.cpp
Expand Up @@ -125,9 +125,10 @@ void TestQgsNetworkAccessManager::initTestCase()
QCoreApplication::setOrganizationDomain( QStringLiteral( "qgis.org" ) );
QCoreApplication::setApplicationName( QStringLiteral( "QGIS-TEST" ) );

QgsSettings().setValue( QStringLiteral( "/qgis/networkAndProxy/networkTimeout" ), 1000 );
QgsApplication::init();
QgsApplication::initQgis();

QgsSettings().setValue( QStringLiteral( "/qgis/networkAndProxy/networkTimeout" ), 1000 );
}

void TestQgsNetworkAccessManager::cleanupTestCase()
Expand Down

0 comments on commit 18941a1

Please sign in to comment.