tests/multithreaded_test.rb in redic-1.4.0 vs tests/multithreaded_test.rb in redic-1.4.1

- old
+ new

@@ -2,10 +2,18 @@ require_relative "../lib/redic" REDIS_URL = "redis://localhost:6379/" prepare do - Redic.new(REDIS_URL).call("FLUSHDB") + c = Redic.new(REDIS_URL) + + begin + c.call("FLUSHDB") + rescue + c.call("AUTH", "foo") + c.call("FLUSHDB") + c.call("CONFIG", "SET", "requirepass", "") + end end test "multiple threads" do cs = Array.new