module Maxitest::Timeout

def capture_exceptions(*, &block)

def capture_exceptions(*, &block)
  if Maxitest.timeout == false
    super
  else
    super do
      ::Timeout.timeout(Maxitest.timeout || 5, TestCaseTimeout, &block)
    end
  end
end