[Groonga-commit] droonga/drntest at ef986da [master] Add a validation for Groonga header

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jan 31 17:50:49 JST 2014


Kouhei Sutou	2014-01-31 17:50:49 +0900 (Fri, 31 Jan 2014)

  New Revision: ef986da719e34273b4b1ecf5534d9f24d876c0fe
  https://github.com/droonga/drntest/commit/ef986da719e34273b4b1ecf5534d9f24d876c0fe

  Message:
    Add a validation for Groonga header

  Modified files:
    lib/drntest/response-normalizer.rb

  Modified: lib/drntest/response-normalizer.rb (+1 -0)
===================================================================
--- lib/drntest/response-normalizer.rb    2014-01-29 14:49:42 +0900 (a25fbdb)
+++ lib/drntest/response-normalizer.rb    2014-01-31 17:50:49 +0900 (fa852a8)
@@ -78,6 +78,7 @@ module Drntest
     end
 
     def normalize_groonga_command_header!(header)
+      return unless header.is_a?(Array)
       normalized_start_time = 0.0
       normalized_elapsed = 0.0
       header[1] = normalized_start_time if valid_start_time?(header[1])
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index