Skip to content

Commit 96a682d

Browse files
2832
1 parent fa7f0b3 commit 96a682d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spec/lite_spec_helper.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,17 @@ class ExampleTimeout < StandardError; end
118118
end
119119

120120
if SpecConfig.instance.ci? && !%w(1 true yes).include?(ENV['INTERACTIVE']&.downcase)
121-
# Allow a max of 30 seconds per test.
122121
# Tests should take under 10 seconds ideally but it seems
123122
# we have some that run for more than 10 seconds in CI.
124123
config.around(:each) do |example|
125124
timeout = if %w(1 true yes).include?(ENV['STRESS']&.downcase)
126125
210
127126
else
128-
45
127+
if BSON::Environment.jruby?
128+
90
129+
else
130+
45
131+
end
129132
end
130133
TimeoutInterrupt.timeout(timeout, ExampleTimeout) do
131134
example.run

0 commit comments

Comments
 (0)