couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [2/2] mem3 commit: updated refs/heads/COUCHDB-3288-remove-public-db-record to 3de48d2
Date Thu, 02 Feb 2017 17:25:11 GMT
Fix mem3_sync_event_listener unit test

The `should_restart_listener` test was failing because the pattern
supplied to meck was wrong. The argument to
`config_notifier:handle_event/2` is of the pattern `{config_change,
Section, Key, Value, Persist}` but the test was only matching a
four-tuple which I assume was missing the `config_change` atom in the
argument.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/589caba1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/tree/589caba1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/diff/589caba1

Branch: refs/heads/COUCHDB-3288-remove-public-db-record
Commit: 589caba108cfee784a1c434d2a404bccdbc4d624
Parents: c3c5429
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Thu Feb 2 11:23:16 2017 -0600
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Thu Feb 2 11:25:03 2017 -0600

----------------------------------------------------------------------
 src/mem3_sync_event_listener.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/589caba1/src/mem3_sync_event_listener.erl
----------------------------------------------------------------------
diff --git a/src/mem3_sync_event_listener.erl b/src/mem3_sync_event_listener.erl
index 7859c31..cd671e4 100644
--- a/src/mem3_sync_event_listener.erl
+++ b/src/mem3_sync_event_listener.erl
@@ -223,7 +223,7 @@ setup() ->
 
     ok = meck:new(config_notifier, [passthrough]),
     ok = meck:expect(config_notifier, handle_event, [
-        {[{'_', '_', "error", '_'}, '_'], meck:raise(throw, raised_error)},
+        {[{'_', '_', '_', "error", '_'}, '_'], meck:raise(throw, raised_error)},
         {['_', '_'], meck:passthrough()}
     ]),
 


Mime
View raw message