We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7f0b3 commit 96a682dCopy full SHA for 96a682d
spec/lite_spec_helper.rb
@@ -118,14 +118,17 @@ class ExampleTimeout < StandardError; end
118
end
119
120
if SpecConfig.instance.ci? && !%w(1 true yes).include?(ENV['INTERACTIVE']&.downcase)
121
- # Allow a max of 30 seconds per test.
122
# Tests should take under 10 seconds ideally but it seems
123
# we have some that run for more than 10 seconds in CI.
124
config.around(:each) do |example|
125
timeout = if %w(1 true yes).include?(ENV['STRESS']&.downcase)
126
210
127
else
128
- 45
+ if BSON::Environment.jruby?
+ 90
129
+ else
130
+ 45
131
+ end
132
133
TimeoutInterrupt.timeout(timeout, ExampleTimeout) do
134
example.run
0 commit comments