From eb0c83ffcea1aebae3ec954268319a3618e5961b Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Thu, 20 Jan 2022 12:56:44 +0100 Subject: [PATCH] Testing: Increase sleep time for file modification time stamps --- src/test/libraryfilesynctest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/libraryfilesynctest.cpp b/src/test/libraryfilesynctest.cpp index 6721837985d..680e5a75429 100644 --- a/src/test/libraryfilesynctest.cpp +++ b/src/test/libraryfilesynctest.cpp @@ -33,7 +33,12 @@ void sleepBeforeUpdatingFileLastModifiedTime() { // This grace period seems to be mandatory at least for the CI // test runs and might need to be adjusted depending on the // results for different platforms. - QThread::msleep(1); + // + // A sleep time of 1 ms has been reported to cause sporadic failures + // on Ubuntu 20.04 and Qt 5.12 because the file modification time has + // not been increased as expected when exporting track metadata into + // file tags. + QThread::msleep(2); } /// A temporary file system with a single audio file.