This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 1fa4f6ee873bbedf93b8af78951fd788b2797a74
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Wed Apr 17 00:50:31 2024 -0400

    Cleanup shards db after the mem3 bdu test
    
    We added and deleted the _design doc but it was still sometimes affecting
    subsequent unit tests.
---
 src/mem3/test/eunit/mem3_bdu_test.erl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mem3/test/eunit/mem3_bdu_test.erl 
b/src/mem3/test/eunit/mem3_bdu_test.erl
index a0ed0004a..8ee08e1ce 100644
--- a/src/mem3/test/eunit/mem3_bdu_test.erl
+++ b/src/mem3/test/eunit/mem3_bdu_test.erl
@@ -38,6 +38,10 @@ start_couch() ->
     test_util:start_couch([mem3, chttpd]).
 
 stop_couch(Ctx) ->
+    % Clear the shards db since we added a design doc
+    % to it and we don't want it to affect other tests
+    ShardsDb = ?l2b(config:get("mem3", "shards_db", "_dbs")),
+    ok = couch_server:delete(ShardsDb, [?ADMIN_CTX]),
     test_util:stop_couch(Ctx).
 
 mem3_bdu_shard_doc_test_() ->

Reply via email to