Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormishina <temma182008@gmail.com>2022-10-22 11:25:57 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2022-10-23 19:48:40 +0300
commit4d16b32a814257b69794701815424a9b9d6cef23 (patch)
tree31508117c55c7bd979b33f2887ca8d258db77b32
parent8db6ce7e87ef7f40ed906fc8ec50a3ec315d1607 (diff)
Increase :timeout and :process_timeout
The timeout value was extended due to occasional CI failures. Addressing the following error messages: ``` Ferrum::TimeoutError: Timed out waiting for response. It's possible that this happened because something took a very long time (for example a page load was slow). If so, setting the :timeout option to a higher value might help. ``` ``` Ferrum::ProcessTimeoutError: Browser did not produce websocket url within 10 seconds, try to increase `:process_timeout`. See https://github.com/rubycdp/ferrum#customization ```
-rw-r--r--test/test_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 65fa6e8..eb002de 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -24,7 +24,9 @@ browser_path = ENV['CHROMIUM_BIN'] || %w[
Capybara.register_driver :cuprite do |app|
options = {
- window_size: [1280, 1024]
+ window_size: [1280, 1024],
+ timeout: 15,
+ process_timeout: 15
}
options[:browser_path] = browser_path if browser_path
Capybara::Cuprite::Driver.new(app, options)
@@ -38,4 +40,3 @@ Capybara.configure do |config|
config.server_port = 7000
config.default_max_wait_time = 10
end
-