[Groonga-commit] groonga/grntest [master] Use long timeout for column_create

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Nov 8 17:59:12 JST 2012


Kouhei Sutou	2012-11-08 17:59:12 +0900 (Thu, 08 Nov 2012)

  New Revision: 1b5cc20331f7ecffd77110ffa6c1fbbe81cc0693
  https://github.com/groonga/grntest/commit/1b5cc20331f7ecffd77110ffa6c1fbbe81cc0693

  Log:
    Use long timeout for column_create
    
    It may take long time when offline index construction is occurred.

  Modified files:
    lib/grntest/tester.rb

  Modified: lib/grntest/tester.rb (+14 -1)
===================================================================
--- lib/grntest/tester.rb    2012-11-08 13:24:48 +0900 (5f01781)
+++ lib/grntest/tester.rb    2012-11-08 17:59:12 +0900 (6ecf2be)
@@ -1472,7 +1472,20 @@ EOF
 
       private
       def read_output
-        read_all_readable_content(@output)
+        options = {}
+        options[:first_timeout] = long_timeout if may_slow_command?
+        read_all_readable_content(@output, options)
+      end
+
+      MAY_SLOW_COMMANDS = [
+        "column_create",
+      ]
+      def may_slow_command?
+        MAY_SLOW_COMMANDS.include?(@current_command)
+      end
+
+      def long_timeout
+        180
       end
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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