Skip to content

Commit

Permalink
test_out_file: fix file open mode for binary file
Browse files Browse the repository at this point in the history
Signed-off-by: Shizuo Fujita <[email protected]>
  • Loading branch information
Watson1978 committed Dec 7, 2024
1 parent c2da819 commit b11aab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/plugin/test_out_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def create_driver(conf = CONFIG, opts = {})
assert_equal r5, d.formatted[4]

read_gunzip = ->(path){
File.open(path){ |fio|
File.open(path, 'rb'){ |fio|
Zlib::GzipReader.new(StringIO.new(fio.read)).read
}
}
Expand Down

0 comments on commit b11aab6

Please sign in to comment.