test/fork_safety_test.rb in redis-3.3.5 vs test/fork_safety_test.rb in redis-4.0.0.rc1

- old
+ new

@@ -1,13 +1,10 @@ -# encoding: UTF-8 +require_relative "helper" -require File.expand_path("helper", File.dirname(__FILE__)) - class TestForkSafety < Test::Unit::TestCase include Helper::Client - include Helper::Skipable driver(:ruby, :hiredis) do def test_fork_safety redis = Redis.new(OPTIONS) redis.set "foo", 1 @@ -30,11 +27,10 @@ assert_equal 127, status.exitstatus assert_equal "1", redis.get("foo") rescue NotImplementedError => error raise unless error.message =~ /fork is not available/ - return skip(error.message) end def test_fork_safety_with_enabled_inherited_socket redis = Redis.new(OPTIONS.merge(:inherit_socket => true)) redis.set "foo", 1 @@ -57,9 +53,8 @@ assert_equal 0, status.exitstatus assert_equal "2", redis.get("foo") rescue NotImplementedError => error raise unless error.message =~ /fork is not available/ - return skip(error.message) end end end