Commit d5e79d3a authored by Don Gagne's avatar Don Gagne

Merge pull request #743 from DonLakeFlyer/FTPUnitTestFix

FTP Unit Test fix
parents 25177682 238220b3
......@@ -146,15 +146,12 @@ void QGCUASFileManagerUnitTest::_listTest(void)
fileList << "Ddir" << "Ffoo" << "Fbar";
_mockFileServer.setFileList(fileList);
QStringList fileListExpected;
fileListExpected << "dir/" << "foo" << "bar";
_fileListReceived.clear();
_fileManager->listDirectory("/");
QCOMPARE(_multiSpy->checkSignalByMask(resetStatusMessagesSignalMask), true); // We should be told to reset status messages
QCOMPARE(_multiSpy->checkNoSignalByMask(errorMessageSignalMask), true); // We should not get an error signals
QVERIFY(_fileListReceived == fileListExpected);
QVERIFY(_fileListReceived == fileList);
}
void QGCUASFileManagerUnitTest::_validateFileContents(const QString& filePath, uint8_t length)
......
......@@ -106,6 +106,7 @@ void QGCUASFileView::_treeStatusMessage(const QString& msg)
}
} else {
Q_ASSERT(false);
return; // Silence maybe-unitialized on type below
}
QTreeWidgetItem* item;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment