Changed the way end test cleans up tests from a file:delete to a bdberl:delete_database.
Was getting errors with the transaction code... api_test.db: unable to flush: No such file or directory txn_checkpoint: failed to flush the buffer cache: No such file or directory
This commit is contained in:
parent
62e8fa569c
commit
33cbe20ffb
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ init_per_testcase(TestCase, Config) ->
|
|||
|
||||
end_per_testcase(_TestCase, Config) ->
|
||||
ok = bdberl:close(?config(db, Config)),
|
||||
ok = file:delete(filename:join([?config(priv_dir, Config), "api_test.db"])).
|
||||
ok = bdberl:delete_database("api_test.db").
|
||||
|
||||
|
||||
open_should_create_database_if_none_exists(Config) ->
|
||||
|
|
Loading…
Reference in a new issue