diff --git a/src/qgcunittest/RadioConfigTest.cc b/src/qgcunittest/RadioConfigTest.cc index df8abdb617b394cd9316e776625102036d2f1526..e06e21e8c2fbe07a24d9fdc497fb295b9c490abf 100644 --- a/src/qgcunittest/RadioConfigTest.cc +++ b/src/qgcunittest/RadioConfigTest.cc @@ -190,6 +190,10 @@ void RadioConfigTest::_init(MAV_AUTOPILOT firmwareType) _autopilot = qgcApp()->toolbox()->multiVehicleManager()->activeVehicle()->autopilotPlugin(); Q_ASSERT(_autopilot); + + // This test is so quick that it tends to finish before the mission item protocol completes. This causes an error to pop up. + // So we wait a little to let mission items sync. + QTest::qWait(500); // This will instatiate the widget with an active uas with ready parameters _calWidget = new QGCQmlWidgetHolder(QString(), NULL);