Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
get RedisInstance and latest test working well with jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrobson committed Mar 31, 2013
1 parent 3e0bf6a commit 6b57abf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/redis_instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ def port

def stop
return unless @pid
Process.kill('SIGTERM', @pid)
begin
Process.kill('SIGTERM', @pid)
rescue Errno::ESRCH
end
end

def run
@pid = spawn(@opts[:cmd], "--port #{port}", [:out, :err] => '/dev/null')
@pid = spawn(@opts[:cmd], "--port #{port}", "--daemonize yes")
wait_until_useable
end

Expand Down

0 comments on commit 6b57abf

Please sign in to comment.