Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test databases not deleted #99

Closed
wants to merge 3 commits into from

Conversation

jeffdgr8
Copy link
Collaborator

@jeffdgr8 jeffdgr8 commented Jul 7, 2022

There are 4 databases that aren't cleaned up after being created in tests. After running tests repeatedly, these 4 databases will continue to duplicate. This properly handles deleting these databases, or in one instance, the base test DB fails to be deleted because a handle isn't closed.

Fixes couchbase/couchbase-lite-java-ce-root#19.

Also fix a Map variable, writing to the wrong map and an incorrect error message.

Copy link
Contributor

@bmeike bmeike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a million for this. Have added all the fixes except the one so commented.

@@ -71,7 +71,7 @@ static Object toCBLObject(@Nullable Object value) {

throw new IllegalArgumentException(
Log.formatStandardMessage(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've accepted the rest of this... but this looks wrong to me. What is your reasoning?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I described this a bit more here.

@bmeike
Copy link
Contributor

bmeike commented Jul 14, 2022

Btw... FWIW, most of your previously requested changes made it in to release 3.0.2, which should go out very shortly.

@bmeike bmeike closed this Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants