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:
Jon Meredith 2009-02-11 12:04:37 -07:00
parent 62e8fa569c
commit 33cbe20ffb

View file

@ -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) ->