mirror of
https://github.com/zhom/banderole.git
synced 2026-06-06 06:23:53 +02:00
add small delay on windows for file extraction
This commit is contained in:
@@ -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)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user