Update Library/Homebrew/test/sandbox_spec.rb

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Thierry Moisan 2024-07-14 11:51:45 -04:00 committed by GitHub
parent 66a479be82
commit 6995e955b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,7 +134,7 @@ RSpec.describe Sandbox, :needs_macos do
# we have to spawn a process, otherwise kill doesn't try to send a signal if the process doesn't exist
let(:pid) do
pid = spawn("sleep 1000")
sleep 1 # Ensure the process has started
sleep 0.1 # Ensure the process has started
pid
end