Skip to content

Commit d223392

Browse files
committed
feat: make fabric test setup more reliable by just asserting the deletion of a shards db
1 parent 40752fc commit d223392

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/fabric/test/eunit/fabric_tests.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,10 @@ delete_dbs(DbList) ->
386386

387387
setup_fabric() ->
388388
Ctx = test_util:start_couch([fabric]),
389-
ok = clear_shards_db(),
389+
ok = case clear_shards_db() of
390+
ok -> ok;
391+
not_found -> ok
392+
end,
390393
Ctx.
391394

392395
teardown_fabric(Ctx) ->

0 commit comments

Comments
 (0)