Skip to content

Commit 964ccf7

Browse files
committed
Allow better debugging with mocks.
1 parent 5f83c96 commit 964ccf7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/support/redis_mock.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ def run
3939
$stderr.puts ex.backtrace if VERBOSE
4040
retry
4141
ensure
42-
@server.close
42+
begin
43+
@server.close
44+
rescue IOError
45+
end
4346
end
4447
end
4548
end

0 commit comments

Comments
 (0)