From 60a6b3e7ffa209da31d563beae33726412318957 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 2 Dec 2009 23:05:28 +0000 Subject: removed add_fun optimization for filters, this provides better concurrency at the cost of some function transfer/eval overhead, which will be optimized in a future patch. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@886334 13f79535-47bb-0310-9956-ffa450edef68 --- test/view_server/query_server_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/view_server/query_server_spec.rb b/test/view_server/query_server_spec.rb index 4697efca..0d443567 100644 --- a/test/view_server/query_server_spec.rb +++ b/test/view_server/query_server_spec.rb @@ -606,10 +606,9 @@ describe "query server normal case" do before(:all) do @fun = functions["filter-basic"][LANGUAGE] @qs.reset! - @qs.add_fun(@fun).should == true end it "should only return true for good docs" do - @qs.run(["filter", [{"key"=>"bam", "good" => true}, {"foo" => "bar"}, {"good" => true}], {"req" => "foo"}]). + @qs.run(["filter", @fun, [{"key"=>"bam", "good" => true}, {"foo" => "bar"}, {"good" => true}], {"req" => "foo"}]). should == [true, [true, false, true]] end end -- cgit v1.2.3