Skip to content
Extraits de code Groupes Projets
Valider 9f586e91 rédigé par Florian Staudacher's avatar Florian Staudacher
Parcourir les fichiers

well, then let's try the other thing that is suggested on that page to fix cukes

parent efa79a4a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Chargement en cours
...@@ -103,10 +103,11 @@ end ...@@ -103,10 +103,11 @@ end
# give firefox more time to complete requests # give firefox more time to complete requests
# http://ihswebdesign.com/knowledge-base/fixing-selenium-timeouterror/ # http://ihswebdesign.com/knowledge-base/fixing-selenium-timeouterror/
Capybara.register_driver :selenium do |app| After do |scenario|
http_client = Selenium::WebDriver::Remote::Http::Default.new if scenario.exception.is_a? Timeout::Error
http_client.timeout = 100 # restart Selenium driver
Capybara::Selenium::Driver.new(app, :browser => :firefox, :http_client => http_client) Capybara.send(:session_pool).delete_if { |key, value| key =~ /selenium/i }
end
end end
# # https://makandracards.com/makandra/950-speed-up-rspec-by-deferring-garbage-collection # # https://makandracards.com/makandra/950-speed-up-rspec-by-deferring-garbage-collection
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter