summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-23 20:42:23 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-23 20:42:23 -0700
commit33956a6cbb9b8810187bf831def6cccc30472674 (patch)
treece66cbc6e42c3c6392213243a7d595b9a7b13f2a
parent384c40f7cd24def2d5471df9bfa1e2fb2fa78cdb (diff)
Otherwise the GC will unlink sockets.  A better
solution (purgatory?) may be needed...
-rw-r--r--test/unit/test_socket_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/test_socket_helper.rb b/test/unit/test_socket_helper.rb
index 3e28cb9..75d9f7b 100644
--- a/test/unit/test_socket_helper.rb
+++ b/test/unit/test_socket_helper.rb
@@ -10,6 +10,11 @@ class TestSocketHelper < Test::Unit::TestCase
     @log_tmp = Tempfile.new 'logger'
     @logger = Logger.new(@log_tmp.path)
     @test_addr = ENV['UNICORN_TEST_ADDR'] || '127.0.0.1'
+    GC.disable
+  end
+
+  def teardown
+    GC.enable
   end
 
   def test_bind_listen_tcp