Skip to content

Commit

Permalink
test: use more appropriate path for windows
Browse files Browse the repository at this point in the history
Instead of directly specifying "ruby", it is preferable to use
ServerEngine.ruby_bin_path.

Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Oct 15, 2021
1 parent 8a66ba0 commit 8f990b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/command/test_cat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def create_chunk(primary, metadata, es)
def test_cat_json
d = create_driver
d.run(expect_records: 1) do
Open3.pipeline_w("ruby #{FLUENT_CAT_COMMAND} --port #{@port} json") do |stdin|
Open3.pipeline_w("#{ServerEngine.ruby_bin_path} #{FLUENT_CAT_COMMAND} --port #{@port} json") do |stdin|
stdin.puts('{"key":"value"}')
stdin.close
end
Expand All @@ -86,7 +86,7 @@ def test_cat_secondary_file
path = d.instance.write(@chunk)
d = create_driver
d.run(expect_records: 1) do
Open3.pipeline_w("ruby #{FLUENT_CAT_COMMAND} --port #{@port} --format msgpack secondary") do |stdin|
Open3.pipeline_w("#{ServerEngine.ruby_bin_path} #{FLUENT_CAT_COMMAND} --port #{@port} --format msgpack secondary") do |stdin|
stdin.write(File.read(path))
stdin.close
end
Expand Down

0 comments on commit 8f990b8

Please sign in to comment.