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

vatamane pushed a commit to branch reshard
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/reshard by this push:
     new bec130f  [fixup|multi_db_changes] fix unit test broken after emitting 
created event
bec130f is described below

commit bec130f7758774423ca38b1d37dac5ccfc8471b6
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Wed Mar 13 19:16:47 2019 -0400

    [fixup|multi_db_changes] fix unit test broken after emitting created event
---
 src/couch/src/couch_multidb_changes.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/couch/src/couch_multidb_changes.erl 
b/src/couch/src/couch_multidb_changes.erl
index 1f5948d..ec80563 100644
--- a/src/couch/src/couch_multidb_changes.erl
+++ b/src/couch/src/couch_multidb_changes.erl
@@ -447,7 +447,8 @@ t_handle_call_checkpoint_existing() ->
 
 t_handle_info_created() ->
     ?_test(begin
-        State = mock_state(),
+        Tid = mock_ets(),
+        State = mock_state(Tid),
         handle_info_check({'$couch_event', ?DBNAME, created}, State),
         ?assert(meck:validate(?MOD)),
         ?assert(meck:called(?MOD, db_created, [?DBNAME, zig]))

Reply via email to