Yoji Shidara
null+****@clear*****
Mon Dec 9 17:17:07 JST 2013
Yoji Shidara 2013-12-09 17:17:07 +0900 (Mon, 09 Dec 2013) New Revision: ecb0b74f12cf40c140fd29e535d3304175e83920 https://github.com/droonga/fluent-plugin-droonga/commit/ecb0b74f12cf40c140fd29e535d3304175e83920 Message: Fix test case to reflect fix of planner Reflecting change of 7233da5d589b4c1d421b2ddb08e584cd8f7d3398 Modified files: test/unit/plugin/distributor/test_search_plan.rb Modified: test/unit/plugin/distributor/test_search_plan.rb (+6 -5) =================================================================== --- test/unit/plugin/distributor/test_search_plan.rb 2013-12-09 16:46:21 +0900 (b316e66) +++ test/unit/plugin/distributor/test_search_plan.rb 2013-12-09 17:17:07 +0900 (dddecc6) @@ -276,7 +276,7 @@ class DistributedSearchPlanTest < Test::Unit::TestCase }, }) message << gatherer(envelope) - message << searcher(envelope, :sort_limit => 0, + message << searcher(envelope, :sort_limit => 1, :output_limit => 0) assert_planned(message, envelope) end @@ -509,7 +509,8 @@ class DistributedSearchPlanTest < Test::Unit::TestCase }, } - limit = 1 + 4 + [2, 8].min + sort_limit = 1 + 4 + [2, 8].max + output_limit = 1 + 4 + [2, 8].min message = [] message << reducer(envelope, { "records" => { @@ -517,7 +518,7 @@ class DistributedSearchPlanTest < Test::Unit::TestCase "operators" => [ { "column" => 1, "operator" => "<" }, ], - "limit" => limit, + "limit" => output_limit, }, }) message << gatherer(envelope, :elements => { @@ -529,9 +530,9 @@ class DistributedSearchPlanTest < Test::Unit::TestCase ), }) message << searcher(envelope, :sort_offset => 0, - :sort_limit => limit, + :sort_limit => sort_limit, :output_offset => 0, - :output_limit => limit) + :output_limit => output_limit) assert_planned(message, envelope) end -------------- next part -------------- HTML����������������������������...下载