Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseStimpson committed Feb 12, 2024
1 parent c631735 commit 0c1ea2a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/erlfdb_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ create_and_open_test_tenant(Db, Options) ->
create_and_open_tenant(Db, Options, TenantName) ->
case proplists:get_value(empty, Options) of
true ->
clear_and_delete_tenant(Db, TenantName);
case erlfdb_tenant_management:get_tenant(Db, TenantName) of
not_found ->
ok;
_ ->
clear_tenant(Db, TenantName)
end;
_ ->
ok
end,
Expand Down

0 comments on commit 0c1ea2a

Please sign in to comment.