summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2020-09-09 13:38:34 -0500
committerPaul J. Davis <paul.joseph.davis@gmail.com>2020-09-09 13:38:34 -0500
commit22fdff89a7e49e0cb08a7aeff5bfc3e10fe6d154 (patch)
treea8c3bce2217c7dee55feb0141cca9b864eccc970
parent5edc98f427a509844c61425a1e3115f187ffe751 (diff)
downloadcouchdb-prototype/fdb-layer-final-merge.tar.gz
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.
-rw-r--r--src/couch_views/test/couch_views_active_tasks_test.erl3
1 files changed, 3 insertions, 0 deletions
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}.