aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmldelegatemodel
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 11:14:01 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-13 19:19:56 +0200
commitbd1e0844aef407924863f8368b4f475937290ee5 (patch)
tree64194f48ea5561d6afa7b39f704a11fb98147632 /tests/auto/qml/qqmldelegatemodel
parent5f7ecce23321f499b1b002c32a27c63815535baa (diff)
Verify result of test
Fixes compiler warning, and makes that test actually test something. Pick-to: 6.1 Change-Id: I266b538dea36bef87db52e1e18c1d606015b03c9 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmldelegatemodel')
-rw-r--r--tests/auto/qml/qqmldelegatemodel/tst_qqmldelegatemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmldelegatemodel/tst_qqmldelegatemodel.cpp b/tests/auto/qml/qqmldelegatemodel/tst_qqmldelegatemodel.cpp
index 1a772b8a1e..0980d8b8ca 100644
--- a/tests/auto/qml/qqmldelegatemodel/tst_qqmldelegatemodel.cpp
+++ b/tests/auto/qml/qqmldelegatemodel/tst_qqmldelegatemodel.cpp
@@ -162,7 +162,7 @@ void tst_QQmlDelegateModel::filterOnGroup_removeWhenCompleted()
QVERIFY(root);
QQmlDelegateModel *model = root->findChild<QQmlDelegateModel*>();
QVERIFY(model);
- QTest::qWaitFor([=]{ return model->count() == 2; } );
+ QVERIFY(QTest::qWaitFor([=]{ return model->count() == 2; }));
}
QTEST_MAIN(tst_QQmlDelegateModel)