You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2017/03/15 19:25:35 UTC

[06/10] mem3 commit: updated refs/heads/COUCHDB-3326-clustered-purge to e4e8928

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-3326-clustered-purge
Commit: 589caba108cfee784a1c434d2a404bccdbc4d624
Parents: c3c5429
Author: Paul J. Davis <pa...@gmail.com>
Authored: Thu Feb 2 11:23:16 2017 -0600
Committer: Paul J. Davis <pa...@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()}
     ]),