mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
[FSD] Fixed failing test and crashing test
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user