Skip to content

Commit a5063fd

Browse files
Update test_helper.rb
1 parent 99ca101 commit a5063fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,11 @@ module JRubyZlibTestExtension
388388
def capture_exceptions
389389
super
390390

391-
if failures&.reject! { |e| e.error&.is_a?(Zlib::BufError) } # nil if nothing rejected
391+
if failures&.reject! { |e| e.error && e.error.is_a?(Zlib::BufError) } # nil if nothing rejected
392392
failures << Minitest::Skip.new('Skipping Zlib::BufError in JRuby. See: https://github.com/jruby/jruby/issues/6613')
393393
end
394394
end
395395
end
396396

397397
Minitest::Test.prepend(JRubyZlibTestExtension)
398-
end
398+
end

0 commit comments

Comments
 (0)