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.
2 parents 9ab4d3f + 38bcc32 commit 30ae236Copy full SHA for 30ae236
1 file changed
test/test_helper.rb
@@ -500,13 +500,12 @@ def encrypt_xml(assertion_xml, private_key)
500
# Remove after https://github.com/jruby/jruby/issues/6613 is fixed
501
if Minitest::Test.jruby?
502
module JRubyZlibTestExtension
503
- @@jruby_zlib_failures = 0
504
-
505
- def run
+ def capture_exceptions
506
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"
+
+ if failures&.reject! { |e| e.error&.is_a?(Zlib::BufError) } # nil if nothing rejected
+ failures << Minitest::Skip.new('Skipping Zlib::BufError in JRuby. See: https://github.com/jruby/jruby/issues/6613')
+ end
510
end
511
512
0 commit comments