From b11aab6376c3f3ba6d9f391328aa49981187a45e Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Sat, 7 Dec 2024 13:32:51 +0900 Subject: [PATCH] test_out_file: fix file open mode for binary file Signed-off-by: Shizuo Fujita --- test/plugin/test_out_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugin/test_out_file.rb b/test/plugin/test_out_file.rb index 0e9dd17f98..062ba374d7 100644 --- a/test/plugin/test_out_file.rb +++ b/test/plugin/test_out_file.rb @@ -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 } }