Sha256: edb5e437c063618cf4b2cc1ca089b8890f05dd3200e50880c64c73180e2b52fc

Contents?: true

Size: 459 Bytes

Versions: 20

Compression:

Stored size: 459 Bytes

Contents

Around('~@slow') do |scenario, block|
  timeout_seconds = 300
  begin
    Timeout.timeout(timeout_seconds) do
      block.call
    end
  rescue Timeout::Error
     puts "Your test was killed after #{timeout_seconds}"
  end
end

Around('@slow') do |scenario, block|
  timeout_seconds = 1200
  begin
    Timeout.timeout(timeout_seconds) do
      block.call
    end
  rescue Timeout::Error
     puts "Your slow test was killed after #{timeout_seconds}"
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fwtoolkit-0.9.3 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.9.2 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.9.1 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.9.0 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.8.7 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.8.6 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.8.5 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.8.4 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.8.3 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.8.2 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.8.1 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.8.0 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.7.3 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.7.2 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.7.1 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.7.0 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.6.6 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.6.5 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.6.4 lib/fwtoolkit/test/timeout_helper.rb
fwtoolkit-0.6.3 lib/fwtoolkit/test/timeout_helper.rb