Browse Source

Give deleteLater's and Qml time to clean up

QGC4.4
Don Gagne 10 years ago
parent
commit
378c0913af
  1. 3
      src/qgcunittest/UnitTest.cc

3
src/qgcunittest/UnitTest.cc

@ -128,6 +128,9 @@ void UnitTest::cleanup(void) @@ -128,6 +128,9 @@ void UnitTest::cleanup(void)
{
_cleanupCalled = true;
// We add a slight delay here to allow for deleteLater and Qml cleanup
QTest::qWait(200);
// Keep in mind that any code below these QCOMPARE may be skipped if the compare fails
if (_expectMissedMessageBox) {
QEXPECT_FAIL("", "Expecting failure due internal testing", Continue);

Loading…
Cancel
Save