Skip to content

A platform for community discussion. Free, open, simple.

DEV: Don't hardcode timeout for `SystemHelpers#try_until_success` (#22180)

Alan Guo Xiang Tan626eda4c91f3
diff --git a/spec/support/system_helpers.rb b/spec/support/system_helpers.rb
index f5a737e8823..e23adc8e1e8 100644
--- a/spec/support/system_helpers.rb
+++ b/spec/support/system_helpers.rb
@@ -30,7 +30,7 @@ module SystemHelpers
SiteSetting.splash_screen = false
end
- def try_until_success(timeout: 2, frequency: 0.01)
+ def try_until_success(timeout: Capybara.default_max_wait_time, frequency: 0.01)
start ||= Time.zone.now
backoff ||= frequency
yield