From 82e5e888db8fa8182730f8abf78cfcaaeb3fb28d Mon Sep 17 00:00:00 2001 From: Mario Dominguez Date: Tue, 14 Nov 2023 08:09:58 +0100 Subject: [PATCH] Refs #19889: Add a sleep before the first directory operation Signed-off-by: Mario Dominguez --- test/unittest/utils/SystemInfoTests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unittest/utils/SystemInfoTests.cpp b/test/unittest/utils/SystemInfoTests.cpp index 58af62ed4e4..3b8238268c0 100644 --- a/test/unittest/utils/SystemInfoTests.cpp +++ b/test/unittest/utils/SystemInfoTests.cpp @@ -240,6 +240,8 @@ TEST_F(SystemInfoTests, FileWatchTest) cv_.notify_all(); }); + std::this_thread::sleep_for(_1s); + // Read contents { std::ifstream file(filename);