Skip to content

Commit ac3e209

Browse files
committed
[tests] Experiment with fixing test race condition on servlet_context
1 parent 0c210b0 commit ac3e209

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/spec/ruby/jruby/rack/rails_booter_spec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@
120120
[:app_path, :public_path, :context].each do |name|
121121
JRuby::Rack.send :remove_instance_variable, :"@#{name}"
122122
end
123-
end
124-
125-
after :all do
126-
$servlet_context = nil
123+
$servlet_context = nil if defined? $servlet_context
127124
end
128125

129126
let(:railtie_class) { Class.new(Rails::Railtie) }

0 commit comments

Comments
 (0)