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 66893b5 commit 99ca101Copy full SHA for 99ca101
test/test_helper.rb
@@ -385,13 +385,12 @@ def downcased_escape(str)
385
# Remove after https://github.com/jruby/jruby/issues/6613 is fixed
386
if Minitest::Test.jruby?
387
module JRubyZlibTestExtension
388
- @@jruby_zlib_failures = 0
389
-
390
- def run
+ def capture_exceptions
391
super
392
- rescue Zlib::BufError => e
393
- raise e unless (@@jruby_zlib_failures += 1) < 10
394
- 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
395
end
396
397
0 commit comments