relax test

Seems to happen with 5.15 static. It's benign anyway
This commit is contained in:
Sergio Martins
2020-10-16 17:10:40 +01:00
parent 4ed18fdf1d
commit f698b56dad

View File

@@ -5370,16 +5370,10 @@ void TestDocks::tst_floatingAction()
QCOMPARE(spy1.count(), 1);
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
QCOMPARE(spy2.count(), 1);
QCOMPARE(spy21.count(), 1);
#else
// On earlier Qt versions this is flaky, but technically correct.
// Windows can get hidden while being reparented and floating changes momentarily.
// This works well on 5.15 though.
QVERIFY(spy2.count() == 1 || spy2.count() == 3);
QVERIFY(spy21.count() == 1 || spy21.count() == 3);
#endif
QCOMPARE(spy11.count(), 1);
QVERIFY(!dock1->isFloating());