Skip to content

Commit

Permalink
Get tests passing on jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
lantins committed Mar 9, 2012
1 parent 6492824 commit 3f4380d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_helper.rb
Expand Up @@ -2,14 +2,14 @@
$LOAD_PATH.unshift dir + '/../lib'
$TESTING = true

gem 'minitest'
require 'rubygems'
require 'minitest/unit'
require 'minitest/pride'
require 'simplecov'

SimpleCov.start do
add_filter '/test/'
end
end unless RUBY_PLATFORM == 'java'

require 'resque-lock-timeout'
require dir + '/test_jobs'
Expand All @@ -31,8 +31,8 @@
pid = `ps -e -o pid,command | grep [r]edis-test`.split(' ')[0]
puts 'Killing test redis server...'
`rm -f #{dir}/dump.rdb`
Process.kill('KILL', pid.to_i)
exit exit_code
`kill -9 #{pid}`
exit(exit_code)
end

puts 'Starting redis for testing at localhost:9736...'
Expand Down

0 comments on commit 3f4380d

Please sign in to comment.