From f85b503a8c7f58aa9ec9b3582762f61bc4c0885a Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Mon, 9 Dec 2024 18:13:40 +0900 Subject: [PATCH] test_cat: specify the reading size to read in binary mode (#4730) Signed-off-by: Shizuo Fujita --- test/command/test_cat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/command/test_cat.rb b/test/command/test_cat.rb index 40605815bb..d74766ac4f 100644 --- a/test/command/test_cat.rb +++ b/test/command/test_cat.rb @@ -87,7 +87,7 @@ def test_cat_secondary_file d = create_driver d.run(expect_records: 1) do Open3.pipeline_w("#{ServerEngine.ruby_bin_path} #{FLUENT_CAT_COMMAND} --port #{@port} --format msgpack secondary") do |stdin| - stdin.write(File.read(path)) + stdin.write(File.read(path, File.size(path))) stdin.close end end