spec/support/loose_threads.rb in celluloid-0.17.2 vs spec/support/loose_threads.rb in celluloid-0.17.3

- old
+ new

@@ -3,14 +3,10 @@ def loose_threads Thread.list.map do |thread| next unless thread next if thread == Thread.current - # TODO: Remove Specs::ALLOW_SLOW_MAILBOXES hax. - # Allows slow shutdown of mailboxes. - # Find more graceful way to do shutdown. - if RUBY_PLATFORM == "java" # Avoid disrupting jRuby's "fiber" threads. name = thread.to_java.getNativeThread.get_name next if /Fiber/ =~ name next unless /^Ruby-/ =~ name @@ -34,13 +30,9 @@ # Sometimes stays next if thread.backtrace.nil? next unless thread.backtrace.is_a?(Array) next if thread.backtrace.empty? next if thread.backtrace.first =~ /timeout\.rb/ - - if Specs::ALLOW_SLOW_MAILBOXES - next if thread.backtrace[1] =~ /mailbox\.rb/ && thread.backtrace[1] =~ /sleep/ - end end thread end.compact end