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)