[libcalamares] Try repairing tests

- Fail on FreeBSD with an instant timeout
This commit is contained in:
Adriaan de Groot 2020-02-05 17:08:47 +01:00
parent 4525060c26
commit 24c2c435a0

View File

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