Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rapidly creating and deleting a db in the this test triggers a race condition. A potential culprit might be the gen_server cast in https://github.com/apache/couchdb/blob/main/src/mem3/src/mem3_util.erl#L176. To fix the flakiness use the newer `opts_for_db/1` function with a test wait function. This way we may also avoid inadvertently re-creating the shard file due to the `create_if_missing` option from `get_doc_count/1`.
- Loading branch information