From 77115bab30aa789f9af9fe49006e8747488f8a4c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 15 Jun 2016 06:59:06 +0200 Subject: Moved thread-boundary crossing to the model. That way we avoid any unnecessary queuing for the sync API, and enable fine-tuning in the model code at a later stage. --- tests/clientapitest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/clientapitest.cpp b/tests/clientapitest.cpp index da0b52a..8c5866d 100644 --- a/tests/clientapitest.cpp +++ b/tests/clientapitest.cpp @@ -255,7 +255,7 @@ private slots: QCOMPARE(model->rowCount(QModelIndex()), 2); // Ensure children fetched is only emitted once (when all resources are done) QTest::qWait(50); - QCOMPARE(childrenFetchedCount, 1); + QVERIFY(childrenFetchedCount <= 1); } void testImperativeLoad() -- cgit v1.2.3