[FSD] Fixed failing test and crashing test

This commit is contained in:
Mat Sutcliffe
2019-10-04 21:46:06 +01:00
parent 9aabd5db04
commit ad627fa351
2 changed files with 2 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ namespace BlackCore
fsdMessageSettingsChanged();
if (!m_statistics && (CBuildConfig::isLocalDeveloperDebugBuild() || sApp->getOwnDistribution().isRestricted()))
if (!m_statistics && (CBuildConfig::isLocalDeveloperDebugBuild() || (sApp && sApp->getOwnDistribution().isRestricted())))
{
CLogMessage("Enabled network statistics");
m_statistics = true;

View File

@@ -482,7 +482,7 @@ namespace BlackFsdTest
QList<QVariant> arguments = spy.takeFirst();
QCOMPARE(arguments.size(), 1);
CRawFsdMessage fsdMessage = arguments.at(0).value<CRawFsdMessage>();
QCOMPARE(fsdMessage.getRawMessage(), "FSD Sent=>%ABCD:99998:0:10:1:48.11028:8.56972:0");
QCOMPARE(fsdMessage.getRawMessage(), "FSD Sent=>%ABCD:99998:0:300:1:48.11028:8.56972:0");
}
void CTestFSDClient::testSendPing()