You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2020/02/14 09:21:18 UTC

[couchdb] 01/05: Fix mango_indexer_test

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch mango-eunit-test-fixes
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit d43d939737d459c47a688deb790e75ce15d0c28f
Author: Jay Doane <ja...@apache.org>
AuthorDate: Thu Feb 13 21:54:03 2020 -0800

    Fix mango_indexer_test
    
    The callback first argument shape changed to `{doc, SortKeys, JsonDoc}`.
---
 src/mango/test/eunit/mango_indexer_test.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mango/test/eunit/mango_indexer_test.erl b/src/mango/test/eunit/mango_indexer_test.erl
index ee24b21..ba0144f 100644
--- a/src/mango/test/eunit/mango_indexer_test.erl
+++ b/src/mango/test/eunit/mango_indexer_test.erl
@@ -155,7 +155,7 @@ doc(Id) ->
     ]}).
 
 
-query_cb({doc, Doc}, #cursor{user_acc = Acc} = Cursor) ->
+query_cb({doc, _, Doc}, #cursor{user_acc = Acc} = Cursor) ->
     {ok, Cursor#cursor{
         user_acc =  Acc ++ [Doc]
     }}.