From c2f38c69fc75e69ba9319fe85a27aca204833af8 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Thu, 8 Feb 2024 22:14:23 +0200 Subject: [PATCH] QFileSystemMetaData: use QTRY_COMPARE*(10s) After d4bb448cddce63e0c6a84a86020fa59dd32b2293 (thanks to Marc), now we can use chrono literals with QTRY_* macros. Amends 72f5b35b3d7704db6ef16e4c60751ed8444363be . (Cannot be backported to older branches because the QTRY* commit is only in the dev branch). Change-Id: Ic31d1ee717af604dd762afa44741cf9ea9b33a8e Reviewed-by: Marc Mutz --- .../gui/itemmodels/qfilesystemmodel/tst_qfilesystemmodel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/auto/gui/itemmodels/qfilesystemmodel/tst_qfilesystemmodel.cpp b/tests/auto/gui/itemmodels/qfilesystemmodel/tst_qfilesystemmodel.cpp index b99dc8c0f8c..ab5e1cf7d64 100644 --- a/tests/auto/gui/itemmodels/qfilesystemmodel/tst_qfilesystemmodel.cpp +++ b/tests/auto/gui/itemmodels/qfilesystemmodel/tst_qfilesystemmodel.cpp @@ -722,8 +722,7 @@ void tst_QFileSystemModel::showFilesOnly() // THEN: setting the root path to the previous (parent) dir, the model should // still only show files. // Doubling the default timeout (5s) as this test to fails on macos on the CI - QTRY_COMPARE_WITH_TIMEOUT(model.rowCount(model.setRootPath(tmp)), files.size(), - (10000ms).count()); + QTRY_COMPARE_WITH_TIMEOUT(model.rowCount(model.setRootPath(tmp)), files.size(), 10s); } void tst_QFileSystemModel::nameFilters()