From 020f431c72f6c350103083d15c6ee321868341d1 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Tue, 23 Jan 2024 15:32:04 +0100 Subject: [PATCH] UnitTests/Process: Increase wait durations --- tests/UnitTests/Engine/Core/ProcessTests.cpp | 2 +- tests/UnitTests/subprocess1.cpp | 2 +- tests/UnitTests/subprocess2.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/UnitTests/Engine/Core/ProcessTests.cpp b/tests/UnitTests/Engine/Core/ProcessTests.cpp index ffb38252d..44bac9ff5 100644 --- a/tests/UnitTests/Engine/Core/ProcessTests.cpp +++ b/tests/UnitTests/Engine/Core/ProcessTests.cpp @@ -39,7 +39,7 @@ SCENARIO("Process", "[CORE][PROCESS]") REQUIRE(false); } - std::this_thread::sleep_for(std::chrono::seconds(1)); + std::this_thread::sleep_for(std::chrono::seconds(2)); // Some files were written in the ProcessTests directory diff --git a/tests/UnitTests/subprocess1.cpp b/tests/UnitTests/subprocess1.cpp index e8db524a1..2d851e400 100644 --- a/tests/UnitTests/subprocess1.cpp +++ b/tests/UnitTests/subprocess1.cpp @@ -39,5 +39,5 @@ int main(int argc, char* argv[]) } // Wait for our child process to start and check for our existence - std::this_thread::sleep_for(std::chrono::milliseconds(200)); + std::this_thread::sleep_for(std::chrono::milliseconds(500)); } diff --git a/tests/UnitTests/subprocess2.cpp b/tests/UnitTests/subprocess2.cpp index c823f878e..895e46a32 100644 --- a/tests/UnitTests/subprocess2.cpp +++ b/tests/UnitTests/subprocess2.cpp @@ -57,7 +57,7 @@ int main(int argc, char* argv[]) successFile5.Flush(); // Wait until parent dies - std::this_thread::sleep_for(std::chrono::milliseconds(500)); + std::this_thread::sleep_for(std::chrono::milliseconds(1000)); result = Nz::Process::Exists(pid); if (!result)