disabled timeout detection for RSpec tests
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
MAXIMUM_EXECUTION_TIME = 15
|
||||
|
||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||
ENV["RAILS_ENV"] ||= 'test'
|
||||
require 'spec_helper'
|
||||
@ -21,10 +19,6 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
||||
ActiveRecord::Migration.maintain_test_schema!
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.around(:each) do |example|
|
||||
Timeout::timeout(example.metadata[:permitted_execution_time] || MAXIMUM_EXECUTION_TIME) { example.run }
|
||||
end
|
||||
|
||||
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
||||
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
||||
|
||||
|
Reference in New Issue
Block a user