Skip to content

Commit f85b503

Browse files
authored
test_cat: specify the reading size to read in binary mode (#4730)
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 7868b5d commit f85b503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/command/test_cat.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_cat_secondary_file
8787
d = create_driver
8888
d.run(expect_records: 1) do
8989
Open3.pipeline_w("#{ServerEngine.ruby_bin_path} #{FLUENT_CAT_COMMAND} --port #{@port} --format msgpack secondary") do |stdin|
90-
stdin.write(File.read(path))
90+
stdin.write(File.read(path, File.size(path)))
9191
stdin.close
9292
end
9393
end

0 commit comments

Comments
 (0)