Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Replace wait_for_file with wait_for_file_content
Maximilian Roos482951b5045f
diff --git a/tests/integration_tests/user_hooks.rs b/tests/integration_tests/user_hooks.rsindex b8145b8c1..169dd7db7 100644--- a/tests/integration_tests/user_hooks.rs+++ b/tests/integration_tests/user_hooks.rs@@ -354,8 +354,9 @@ long = "sh -c 'echo start >> hook.log; sleep 30; echo done >> hook.log'"let mut child = cmd.spawn().expect("failed to spawn wt hook pre-merge");// Wait until hook writes "start" to hook.log (verifies the hook is running)+ // Use wait_for_file_content to ensure echo has finished writing, not just that the file existslet hook_log = repo.root_path().join("hook.log");- wait_for_file(&hook_log, Duration::from_secs(5));+ wait_for_file_content(&hook_log, Duration::from_secs(5));// Send SIGINT to wt (simulates Ctrl-C)kill(Pid::from_raw(child.id() as i32), Signal::SIGINT).expect("failed to send SIGINT");