YUKI Hiroshi
null+****@clear*****
Fri Mar 20 11:11:43 JST 2015
YUKI Hiroshi 2015-03-20 11:11:43 +0900 (Fri, 20 Mar 2015) New Revision: daa2f34fec7ec89dd9d255fa1f2604f480c1930d https://github.com/droonga/drntest/commit/daa2f34fec7ec89dd9d255fa1f2604f480c1930d Message: Ignore invalid format responses for Groonga commands Modified files: lib/drntest/response-normalizer.rb Modified: lib/drntest/response-normalizer.rb (+3 -0) =================================================================== --- lib/drntest/response-normalizer.rb 2015-01-16 18:44:37 +0900 (9d883d4) +++ lib/drntest/response-normalizer.rb 2015-03-20 11:11:43 +0900 (5612bd8) @@ -98,6 +98,7 @@ module Drntest end def normalize_groonga_command_response!(response) + return unless response.is_a?(Array) normalize_groonga_command_header!(response[0]) normalize_groonga_command_body!(response[1..-1]) end @@ -129,6 +130,7 @@ module Drntest TABLE_PATH_COLUMN_INDEX = 2 def normalize_groonga_table_list_command_body!(body) + return unless body.is_a?(Array) or body.empty? tables = body[0][1..-1] return unless tables.is_a?(Array) tables.each do |table| @@ -140,6 +142,7 @@ module Drntest COLUMN_PATH_COLUMN_INDEX = 2 def normalize_groonga_column_list_command_body!(body) + return unless body.is_a?(Array) or body.empty? columns = body[0][1..-1] return unless columns.is_a?(Array) columns.each do |column| -------------- next part -------------- HTML����������������������������... 下载