Skip to content

Commit

Permalink
Fix server start timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Dec 15, 2024
1 parent 85a59b0 commit ba1dd6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/daemonizing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def name

pid = subject.pid

subject.kill(1)
subject.kill(10)

expect(File.exist?(subject.pid_file)).to be_falsey
expect(Process.running?(pid)).to be_falsey
Expand Down Expand Up @@ -183,6 +183,6 @@ def name
private

def wait_for_server_to_start
expect{sleep 0.1 until File.exist?(subject.pid_file)}.to take_less_then(10)
expect{sleep(0.1) until File.exist?(subject.pid_file)}.to take_less_then(60)
end
end

0 comments on commit ba1dd6a

Please sign in to comment.