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/03/13 23:17:16 UTC
[couchdb] branch reshard updated: [fixup|multi_db_changes] fix unit
test broken after emitting created event
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 <va...@apache.org>
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]))