Navigation Menu

Skip to content

Commit

Permalink
run-regression-test: ensure outputting command
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 24, 2017
1 parent 88ea45a commit 877fb43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/groonga/query-log/server-verifier.rb
Expand Up @@ -131,7 +131,7 @@ def target_command?(command)

def verify_command(groonga1_client, groonga2_client, command)
command["cache"] = "no" if @options.disable_cache?
command["output_type"] = :json
command["output_type"] = "json"
response1 = groonga1_client.execute(command)
response2 = groonga2_client.execute(command)
compare_options = {
Expand All @@ -146,7 +146,8 @@ def verify_command(groonga1_client, groonga2_client, command)

def report_result(output, result)
command, response1, response2 = result
output.puts("command: #{command.original_source}")
command_source = command.original_source || command.to_uri_format
output.puts("command: #{command_source}")
output.puts("response1: #{response1.body.to_json}")
output.puts("response2: #{response2.body.to_json}")
end
Expand Down

0 comments on commit 877fb43

Please sign in to comment.