diff options
-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 |