mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
DEV: Set Capybara.default_max_wait_time
to 4
as default (#24934)
Why this change? By default, `Capybara.default_max_wait_time` is set to `2`. However, this is not a high enough default for Discourse as certain requests like creating a post can take upwards of 2 seconds even on a high end desktop CPU like the Ryzen 5950x. Therefore, we have decided to double the default max wait time.
This commit is contained in:
parent
1f6d778561
commit
ac21d8af50
@ -304,6 +304,8 @@ RSpec.configure do |config|
|
||||
|
||||
if ENV["CAPYBARA_DEFAULT_MAX_WAIT_TIME"].present?
|
||||
Capybara.default_max_wait_time = ENV["CAPYBARA_DEFAULT_MAX_WAIT_TIME"].to_i
|
||||
else
|
||||
Capybara.default_max_wait_time = 4
|
||||
end
|
||||
|
||||
Capybara.threadsafe = true
|
||||
|
Loading…
Reference in New Issue
Block a user