Skip to content

Commit 38bcc32

Browse files
Update test_helper.rb
1 parent 263f13f commit 38bcc32

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
@@ -502,8 +502,8 @@ def encrypt_xml(assertion_xml, private_key)
502502
module JRubyZlibTestExtension
503503
def capture_exceptions
504504
super
505-
if failures&.any? {|e| e.error&.is_a?(Zlib::BufError) }
506-
failures.reject! {|e| e.error&.is_a?(Zlib::BufError) }
505+
506+
if failures&.reject! { |e| e.error&.is_a?(Zlib::BufError) } # nil if nothing rejected
507507
failures << Minitest::Skip.new('Skipping Zlib::BufError in JRuby. See: https://github.com/jruby/jruby/issues/6613')
508508
end
509509
end

0 commit comments

Comments
 (0)