mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-08 18:55:36 +08:00
Use QSKIP to flag a test 'skipped', if server is not reachable
refs #682
This commit is contained in:
@@ -57,7 +57,7 @@ namespace BlackCoreTest
|
||||
void CTestReaders::readIcaoData()
|
||||
{
|
||||
const CUrl url(sApp->getGlobalSetup().getDbIcaoReaderUrl());
|
||||
if (!this->pingServer(url)) { return; }
|
||||
if (!this->pingServer(url)) { QSKIP("Server not reachable."); }
|
||||
m_icaoReader->start();
|
||||
m_icaoReader->readInBackgroundThread(CEntityFlags::AllIcaoEntities, QDateTime());
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace BlackCoreTest
|
||||
void CTestReaders::readModelData()
|
||||
{
|
||||
const CUrl url(sApp->getGlobalSetup().getDbModelReaderUrl());
|
||||
if (!this->pingServer(url)) { return; }
|
||||
if (!this->pingServer(url)) { QSKIP("Server not reachable."); }
|
||||
m_modelReader->start();
|
||||
m_modelReader->readInBackgroundThread(CEntityFlags::ModelEntity, QDateTime());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user