diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-09-09 13:38:34 -0500 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-09-09 13:38:34 -0500 |
commit | 22fdff89a7e49e0cb08a7aeff5bfc3e10fe6d154 (patch) | |
tree | a8c3bce2217c7dee55feb0141cca9b864eccc970 | |
parent | 5edc98f427a509844c61425a1e3115f187ffe751 (diff) | |
download | couchdb-prototype/fdb-layer-final-merge.tar.gz |
Ensure multiple batches are usedarchive/prototype/fdb-layer-final-mergeprototype/fdb-layer-final-merge
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.erl | 3 |
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}. |