You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2019/12/11 18:30:25 UTC

[couchdb] branch fix-multidb-changes-test created (now a49efa7)

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

vatamane pushed a change to branch fix-multidb-changes-test
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at a49efa7  Fix multidb changes test

This branch includes the following new commits:

     new a49efa7  Fix multidb changes test

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: Fix multidb changes test

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch fix-multidb-changes-test
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit a49efa7ac527e03755ef5457fd8ea8d6c7c039b7
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Wed Dec 11 13:27:36 2019 -0500

    Fix multidb changes test
    
    The test broke during the removal of view-based changes PR
    
    Issue: https://github.com/apache/couchdb/pull/2324
---
 src/couch/src/couch_multidb_changes.erl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/couch/src/couch_multidb_changes.erl b/src/couch/src/couch_multidb_changes.erl
index dad3636..ccdc0f9 100644
--- a/src/couch/src/couch_multidb_changes.erl
+++ b/src/couch/src/couch_multidb_changes.erl
@@ -822,8 +822,9 @@ kill_mock_changes_reader_and_get_its_args(Pid) ->
 
 mock_changes_reader() ->
     meck:expect(couch_changes, handle_db_changes,
-        fun(_ChArgs, _Req, db) ->
-            fun mock_changes_reader_loop/1
+        fun
+            (_ChArgs, _Req, db) -> fun mock_changes_reader_loop/1;
+            (_ChArgs, _Req, dbs) -> fun(_) -> ok end
         end).