From 378c0913af26986705ce1c06bb10b9428e2a416a Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 18 Oct 2015 18:38:07 -0700 Subject: [PATCH] Give deleteLater's and Qml time to clean up --- src/qgcunittest/UnitTest.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qgcunittest/UnitTest.cc b/src/qgcunittest/UnitTest.cc index 4a403c1c0..bf901de7a 100644 --- a/src/qgcunittest/UnitTest.cc +++ b/src/qgcunittest/UnitTest.cc @@ -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); -- 2.22.0