From 22fdff89a7e49e0cb08a7aeff5bfc3e10fe6d154 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Wed, 9 Sep 2020 13:38:34 -0500 Subject: Ensure multiple batches are used The active tasks test was failing sporadically. I realized that this was due to batches of 1k+ which resulted in the test grabbing a copy of the initial active task blob that had listed zero processed changes. Reducing the size of individual batches guarnatees that we'll have set an active task status with > 0 changes done. --- src/couch_views/test/couch_views_active_tasks_test.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/couch_views/test/couch_views_active_tasks_test.erl b/src/couch_views/test/couch_views_active_tasks_test.erl index f87e01055..553d4b8bb 100644 --- a/src/couch_views/test/couch_views_active_tasks_test.erl +++ b/src/couch_views/test/couch_views_active_tasks_test.erl @@ -47,6 +47,9 @@ foreach_setup() -> Docs = make_docs(?TOTAL_DOCS), fabric2_db:update_docs(Db, [DDoc | Docs]), + meck:new(couch_rate, [passthrough]), + meck:expect(couch_rate, budget, fun(_) -> 100 end), + {Db, DDoc}. -- cgit v1.2.1