Skip to content

Update DB tests with initialization and teardown#97

Merged
idroz merged 1 commit intobravetools:masterfrom
Szubie:db-test-fix
Jun 24, 2022
Merged

Update DB tests with initialization and teardown#97
idroz merged 1 commit intobravetools:masterfrom
Szubie:db-test-fix

Conversation

@Szubie
Copy link
Collaborator

@Szubie Szubie commented Jun 24, 2022

This allows the tests to run without running into errors. Previously, the OpenDB function would create a DB if it did not already exist, but this was changed in 5953070 to avoid issues with empty db files being created.

A test DB will be created prior to running tests and then deleted after the conclusion of all the tests.

The tests themselves could still use some more work to be more useful at testing the happy path, but at least with these issues the tests can run to completion without errors.

… afterwards. This allows the tests to run without running into errors. Previously, the `OpenDB` function would create a DB if it did not already exist, but this was changed.
@idroz idroz merged commit 7e1d752 into bravetools:master Jun 24, 2022
@Szubie Szubie deleted the db-test-fix branch June 24, 2022 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants