From 690254cadac79f9968451cf8c43095cacdde1b45 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Sun, 10 Aug 2025 03:12:08 +0400 Subject: [PATCH] add small delay on windows for file extraction --- tests/common/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 1135907..587f3b4 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -733,6 +733,15 @@ impl BundlerTestHelper { candidate.display() ) })?; + // Give Windows a brief moment to finalize the new executable on disk + std::thread::sleep(std::time::Duration::from_millis(50)); + // Verify existence + if !candidate.exists() { + anyhow::bail!( + "Temp executable not found after copy: {}", + candidate.display() + ); + } (candidate, temp_dir) };