Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Close mock server socket upon exiting method body
  • Loading branch information
pietern committed Oct 26, 2011
1 parent f2bf2a3 commit b02953f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/redis_mock.rb
Expand Up @@ -50,6 +50,8 @@ def run
rescue => ex
$stderr.puts "Error running mock server: #{ex.message}" if VERBOSE
$stderr.puts ex.backtrace if VERBOSE
ensure
@server.close
end
end

Expand Down

0 comments on commit b02953f

Please sign in to comment.