[Groonga-commit] droonga/fluent-plugin-droonga at e387f42 [master] Remove needless query

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Jan 31 17:45:34 JST 2014


YUKI Hiroshi	2014-01-31 17:45:34 +0900 (Fri, 31 Jan 2014)

  New Revision: e387f42d8c29da1cdf1f53f9b9b1b5efcc7f84ba
  https://github.com/droonga/fluent-plugin-droonga/commit/e387f42d8c29da1cdf1f53f9b9b1b5efcc7f84ba

  Message:
    Remove needless query

  Modified files:
    test/unit/plugin/distributor/test_search.rb

  Modified: test/unit/plugin/distributor/test_search.rb (+2 -45)
===================================================================
--- test/unit/plugin/distributor/test_search.rb    2014-01-31 17:40:35 +0900 (6e8b235)
+++ test/unit/plugin/distributor/test_search.rb    2014-01-31 17:45:34 +0900 (0468ea3)
@@ -52,16 +52,6 @@ class SearchDistributorTest < Test::Unit::TestCase
               "limit" => 20,
             },
           },
-          "query3" => {
-            "source" => "User",
-            "output" => {
-              "format" => "complex",
-              "elements" => ["count", "records"],
-              "attributes" => [],
-              "offset" => 0,
-              "limit" => 30,
-            },
-          },
         },
       },
     }
@@ -103,21 +93,9 @@ class SearchDistributorTest < Test::Unit::TestCase
             },
           },
         },
-        "query3" => {
-          "query3_reduced" => {
-            "count" => {
-              "type" => "sum",
-            },
-            "records" => {
-              "type" => "sort",
-              "operators" => [],
-              "limit" => 30,
-            },
-          },
-        },
       },
-      "inputs" => ["errors", "query1", "query2", "query3"],
-      "outputs" => ["errors_reduced", "query1_reduced", "query2_reduced", "query3_reduced"],
+      "inputs" => ["errors", "query1", "query2"],
+      "outputs" => ["errors_reduced", "query1_reduced", "query2_reduced"],
     }
 
     gatherer = {
@@ -144,21 +122,11 @@ class SearchDistributorTest < Test::Unit::TestCase
             },
           },
         },
-        "query3_reduced" => {
-          "output" => "query3",
-          "elements" => {
-            "records" => {
-              "limit" => 30,
-              "format" => "complex",
-            },
-          },
-        },
       },
       "inputs" => [
         "errors_reduced",
         "query1_reduced",
         "query2_reduced",
-        "query3_reduced",
       ],
       "post" => true,
     }
@@ -190,23 +158,12 @@ class SearchDistributorTest < Test::Unit::TestCase
               "limit" => 20,
             },
           },
-          "query3" => {
-            "source" => "User",
-            "output" => {
-              "format" => "simple",
-              "elements" => ["count", "records"],
-              "attributes" => [],
-              "offset" => 0,
-              "limit" => 30,
-            },
-          },
         },
       },
       "outputs" => [
         "errors",
         "query1",
         "query2",
-        "query3",
       ],
       "replica" => "random",
     }
-------------- next part --------------
HTML����������������������������...
Download 



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