From 22499df477dc48227e64742827e2db7704001ef8 Mon Sep 17 00:00:00 2001 From: Fergal Mc Carthy Date: Tue, 11 Aug 2026 13:27:04 -0400 Subject: [PATCH] Attempt to address flapping lockfile feature test Avoid a potential race when creating a child process to acquire the lockfile by sleeping in the main process to allow the child process time to start up and acquire the lock. AI-Assistance-By: Qwen 3.6 35B MoE (A3B) Fixes: SCC-964 --- features/lockfile_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/lockfile_spec.rb b/features/lockfile_spec.rb index c89c0051e..d80865803 100644 --- a/features/lockfile_spec.rb +++ b/features/lockfile_spec.rb @@ -7,6 +7,8 @@ parent_pid = fork do system "/usr/bin/rmt-cli sync > /dev/null" end + # Give the forked process time to start and acquire the lock + sleep 1 example.run # wait for the parent process to finish, so the lock is released Process.wait(parent_pid)