File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -500,13 +500,12 @@ def encrypt_xml(assertion_xml, private_key)
500500# Remove after https://github.com/jruby/jruby/issues/6613 is fixed
501501if Minitest ::Test . jruby?
502502 module JRubyZlibTestExtension
503- @@jruby_zlib_failures = 0
504-
505- def run
503+ def capture_exceptions
506504 super
507- rescue Zlib ::BufError => e
508- raise e unless ( @@jruby_zlib_failures += 1 ) < 10
509- skip "Skipping Zlib::BufError in JRuby, see https://github.com/jruby/jruby/issues/6613"
505+
506+ if failures &.reject! { |e | e . error &.is_a? ( Zlib ::BufError ) } # nil if nothing rejected
507+ failures << Minitest ::Skip . new ( 'Skipping Zlib::BufError in JRuby. See: https://github.com/jruby/jruby/issues/6613' )
508+ end
510509 end
511510 end
512511
You can’t perform that action at this time.
0 commit comments