apache / couchdb

Seamless multi-master syncing database with an intuitive HTTP/JSON API, designed for reliability
https://couchdb.apache.org/
Apache License 2.0
6.26k stars 1.03k forks source link

Fix mango tests using custom db name #5341

Open jiahuili430 opened 5 hours ago

jiahuili430 commented 5 hours ago

Overview

When running mango tests, sometimes get org.apache.lucene.store.NoSuchDirectoryException error. This is because each test in the same class used the same database name, and in the setUp function always delete and recreate it, which caused a race condition.

Using custom database names should solve it.

Testing recommendations

make mango-test

Related Issues or Pull Requests

Checklist