Maintenance: Disable WebMock in Capybara to solve Net::OpenTimeout issues.
(cherry picked from commit 69067529f7e8f98b22091bf5942bf305108fa3f5)
This commit is contained in:
parent
68d7592610
commit
346ef5b3b2
1 changed files with 8 additions and 0 deletions
|
@ -50,4 +50,12 @@ RSpec.configure do |config|
|
|||
end
|
||||
end
|
||||
|
||||
config.around(:each, type: :system) do |example|
|
||||
# WebMock makes it impossible to have persistent http connections to Selenium,
|
||||
# which may cause overhead and Net::OpenTimeout errors.
|
||||
WebMock.disable!
|
||||
example.run
|
||||
WebMock.enable!
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue