Skip to content

Commit

Permalink
test_cat: specify the reading size to read in binary mode (fluent#4730)
Browse files Browse the repository at this point in the history
Signed-off-by: Shizuo Fujita <[email protected]>
  • Loading branch information
Watson1978 authored Dec 9, 2024
1 parent 7868b5d commit f85b503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/command/test_cat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f85b503

Please sign in to comment.