[libcalamares] Try repairing tests

- Fail on FreeBSD with an instant timeout
main
Adriaan de Groot 5 years ago
parent 4525060c26
commit 24c2c435a0

@ -19,6 +19,7 @@
#include "Tests.h" #include "Tests.h"
#include "Manager.h" #include "Manager.h"
#include "utils/Logger.h"
#include <QtTest/QtTest> #include <QtTest/QtTest>
@ -43,6 +44,9 @@ NetworkTests::testInstance()
void void
NetworkTests::testPing() NetworkTests::testPing()
{ {
auto& nam = CalamaresUtils::Network::Manager::instance(); using namespace CalamaresUtils::Network;
QVERIFY( nam.synchronousPing( QUrl( "https://www.kde.org" ) ) ); Logger::setupLogLevel( Logger::LOGVERBOSE );
auto& nam = Manager::instance();
auto r = nam.synchronousPing( QUrl( "https://www.kde.org" ), RequestOptions( RequestOptions::FollowRedirect ) );
QVERIFY( r );
} }

Loading…
Cancel
Save