From 7baacb56a9a0d93c3347d0e0f1c284b2d7b5fdda Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 20 Apr 2009 18:46:09 +0200 Subject: [PATCH] ensure socket closure in very old test scripts --- test/common.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common.rb b/test/common.rb index 9475962..895f2c0 100644 --- a/test/common.rb +++ b/test/common.rb @@ -26,6 +26,8 @@ def wait_for_server(host, port) $stderr.print "." if $DEBUG $stderr.flush sleep 0.2 + ensure + socket.close end end end -- 2.7.4