From 83e7dcfce2cda4bfa3b27eba4fb6abb582efb3d6 Mon Sep 17 00:00:00 2001 From: thuanquang Date: Mon, 19 Oct 2026 19:25:47 +0700 Subject: [PATCH] test(libkernel): wait up to 30 s for the file lock test's child process Co-Authored-By: Claude --- core/libs/tests/GuestFileLock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/libs/tests/GuestFileLock.cpp b/core/libs/tests/GuestFileLock.cpp index 5cd80d4496..0a49b8d102 100644 --- a/core/libs/tests/GuestFileLock.cpp +++ b/core/libs/tests/GuestFileLock.cpp @@ -267,7 +267,7 @@ static int ChildTry(const std::string& path, int mode) { PROCESS_INFORMATION process{}; Require(::CreateProcessW(nullptr, command.data(), nullptr, nullptr, FALSE, CREATE_NO_WINDOW, nullptr, nullptr, &startup, &process) != 0); ::CloseHandle(process.hThread); - if (::WaitForSingleObject(process.hProcess, 3000) != WAIT_OBJECT_0) { + if (::WaitForSingleObject(process.hProcess, 30000) != WAIT_OBJECT_0) { ::TerminateProcess(process.hProcess, 99); std::abort(); }