[Groonga-commit] droonga/drntest at bfbf021 [master] Receive all responses from the Droonga Engine

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Fri Jan 24 12:55:11 JST 2014


YUKI Hiroshi	2014-01-24 12:55:11 +0900 (Fri, 24 Jan 2014)

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

  Message:
    Receive all responses from the Droonga Engine

  Modified files:
    lib/drntest/test-executor.rb

  Modified: lib/drntest/test-executor.rb (+5 -2)
===================================================================
--- lib/drntest/test-executor.rb    2014-01-23 11:55:59 +0900 (2c229e1)
+++ lib/drntest/test-executor.rb    2014-01-24 12:55:11 +0900 (d8bae0b)
@@ -78,8 +78,11 @@ module Drntest
 
       def execute_request(request)
         if @logging
-          response =****@clien*****(request)
-          @responses << normalize_response(request, response)
+          responses =****@clien*****(request)
+          responses = [responses] unless responses.is_a?(Array)
+          @responses += responses.collect do |response|
+            normalize_response(request, response)
+          end
         else
           @requests << @client.request(request) do
           end
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る