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 2017/04/10 19:12:09 UTC
[couchdb] branch 63012-scheduler updated: [fixup] sleep ->
meck:wait in doc processor
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch 63012-scheduler
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/63012-scheduler by this push:
new 8922094 [fixup] sleep -> meck:wait in doc processor
8922094 is described below
commit 89220948e22076d9569a58715a810692ac955efc
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Mon Apr 10 15:12:03 2017 -0400
[fixup] sleep -> meck:wait in doc processor
---
src/couch_replicator/src/couch_replicator_doc_processor.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/couch_replicator/src/couch_replicator_doc_processor.erl b/src/couch_replicator/src/couch_replicator_doc_processor.erl
index 75ccb26..4f98201 100644
--- a/src/couch_replicator/src/couch_replicator_doc_processor.erl
+++ b/src/couch_replicator/src/couch_replicator_doc_processor.erl
@@ -795,7 +795,7 @@ t_cluster_membership_foldl() ->
meck:expect(couch_replicator_clustering, owner, 2, different_node),
?assert(ets:member(?MODULE, {?DB, ?DOC1})),
gen_server:cast(?MODULE, {cluster, stable}),
- timer:sleep(100),
+ meck:wait(2, couch_replicator_scheduler, find_jobs_by_doc, 2, 5000),
?assertNot(ets:member(?MODULE, {?DB, ?DOC1})),
?assert(removed_job(?R1))
end).
@@ -901,7 +901,7 @@ updated_doc_with_failed_state() ->
mock_existing_jobs_lookup(ExistingJobs) ->
meck:expect(couch_replicator_scheduler, find_jobs_by_doc,
- fun(?DB, ?DOC1) -> ExistingJobs end).
+ fun(?DB, ?DOC1) -> ExistingJobs end).
test_rep(Id) ->
--
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].