From b182c96662e6f0c6b308b388556b3cc4a8396cd1 Mon Sep 17 00:00:00 2001 From: Soyu Kim Date: Tue, 30 Apr 2024 21:54:14 +0900 Subject: [PATCH] Increase timeout to prevent PendingConnectionError --- spec/support/rspec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/rspec.rb b/spec/support/rspec.rb index abf08aed..1c7623fb 100644 --- a/spec/support/rspec.rb +++ b/spec/support/rspec.rb @@ -9,7 +9,7 @@ Capybara.javascript_driver = :cuprite Capybara.register_driver(:cuprite) do |app| - Capybara::Cuprite::Driver.new(app, window_size: [1200, 800], browser_options: { 'no-sandbox': nil }) + Capybara::Cuprite::Driver.new(app, window_size: [1200, 800], browser_options: { 'no-sandbox': nil, timeout: 90 }) end WebMock.disable_net_connect!(allow_localhost: true)