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 <marc.mutz@qt.io>
This commit is contained in:
Ahmad Samir 2024-02-08 22:14:23 +02:00
parent 3f515fa7af
commit c2f38c69fc

View File

@ -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()