Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jruby/test_zlib.rb
Original file line number Diff line number Diff line change
@@ -791,7 +791,7 @@ def test_corrupted_header
gz.finish
# 14: magic(2) + method(1) + flag(1) + mtime(4) + exflag(1) + os(1) + orig_name(2) + comment(2)
1.upto(14) do |idx|
assert_raise(Zlib::BufError, idx) do
assert_raise(Zlib::BufError) do
z = Zlib::Inflate.new(Zlib::MAX_WBITS + 32)
p z.inflate(s[0, idx]) + z.finish
end

0 comments on commit 9dcc637

Please sign in to comment.