diff options
author | Eric Wong <e@80x24.org> | 2013-10-25 19:54:39 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-25 20:00:35 +0000 |
commit | 1dc099228ee0f59c13385a3e7346a2cb37d85153 (patch) | |
tree | 06403cf1f7a6572ab16b0cc2ff7c57f3e4a4d4a3 | |
parent | 7d6ac0c17eb29a00a5b74099dbb3d4d015999f27 (diff) | |
download | unicorn-1dc099228ee0f59c13385a3e7346a2cb37d85153.tar.gz |
Otherwise these tests fail if we start using IO#autoclose=true on Ruby 1.9 (and also if we use IPv6 sockets for tests).
-rw-r--r-- | t/oob_gc.ru | 3 | ||||
-rw-r--r-- | t/oob_gc_path.ru | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/t/oob_gc.ru b/t/oob_gc.ru index c6035b6..c253540 100644 --- a/t/oob_gc.ru +++ b/t/oob_gc.ru @@ -7,8 +7,7 @@ $gc_started = false # Mock GC.start def GC.start - ObjectSpace.each_object(BasicSocket) do |x| - next if Unicorn::HttpServer::LISTENERS.include?(x) + ObjectSpace.each_object(Kgio::Socket) do |x| x.closed? or abort "not closed #{x}" end $gc_started = true diff --git a/t/oob_gc_path.ru b/t/oob_gc_path.ru index e936a85..af8e3b9 100644 --- a/t/oob_gc_path.ru +++ b/t/oob_gc_path.ru @@ -7,8 +7,7 @@ $gc_started = false # Mock GC.start def GC.start - ObjectSpace.each_object(BasicSocket) do |x| - next if Unicorn::HttpServer::LISTENERS.include?(x) + ObjectSpace.each_object(Kgio::Socket) do |x| x.closed? or abort "not closed #{x}" end $gc_started = true |