YUKI Hiroshi
null+****@clear*****
Fri Dec 6 10:23:34 JST 2013
YUKI Hiroshi 2013-12-06 10:23:34 +0900 (Fri, 06 Dec 2013) New Revision: ee041d099bbe5be140bf0541eb54c287f2417d0d https://github.com/droonga/fluent-plugin-droonga/commit/ee041d099bbe5be140bf0541eb54c287f2417d0d Message: Use Marshal.load and Marshal.dump to copy input deeply Modified files: test/unit/plugin/distributor/test_search_plan.rb Modified: test/unit/plugin/distributor/test_search_plan.rb (+2 -1) =================================================================== --- test/unit/plugin/distributor/test_search_plan.rb 2013-12-06 10:15:10 +0900 (8a0bca2) +++ test/unit/plugin/distributor/test_search_plan.rb 2013-12-06 10:23:34 +0900 (caad6d7) @@ -1039,7 +1039,8 @@ class DistributedSearchPlanTest < Test::Unit::TestCase end def searcher(search_request_envelope, options={}) - searcher = search_request_envelope.clone + # dup and clone don't copy it deeply... + searcher = Marshal.load(Marshal.dump(search_request_envelope)) queries = searcher["body"]["queries"] query_name = queries.keys.first -------------- next part -------------- HTML����������������������������...Download