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

Clean up After Test DBs #10

Merged
merged 3 commits into from
Mar 16, 2017
Merged

Conversation

ryanjyoder
Copy link
Contributor

Cleans up test dbs created during tests.
Moves current "deletes" to defer after creation, which prevents orphan dbs from being left behind when a test errors out.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 71.192% when pulling 41032ee on ryanjyoder:clean_up_test_dbs into 6b4d7ca on zemirco:master.

Copy link
Owner

@zemirco zemirco left a comment

Choose a reason for hiding this comment

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

Your pull requests are really good! Just one minor issue with duplicate client.Delete.

@@ -1724,6 +1729,7 @@ func TestSeed(t *testing.T) {
if _, err := client.Create(name); err != nil {
t.Error(err)
}
defer client.Delete(name)
Copy link
Owner

Choose a reason for hiding this comment

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

The client.Delete at the end of the method can then be deleted, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I deleted the Delete at the end of this method. Are you talking about this line?
https://github.com/zemirco/couchdb/pull/10/files#diff-51565ad50d7426213c2f33579f6f0e71L567
It looks like I missed one. I'll updated it.

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah I was talking about the one you missed. I just could not create the comment at that line since you didn't touch it in your pull requests. GitHub just doesn't allow adding comments to lines which were not modified

@coveralls
Copy link

Coverage Status

Coverage remained the same at 71.192% when pulling 0a735fe on ryanjyoder:clean_up_test_dbs into 6b4d7ca on zemirco:master.

@zemirco zemirco merged commit 2c256eb into zemirco:master Mar 16, 2017
@ryanjyoder ryanjyoder deleted the clean_up_test_dbs branch March 30, 2017 04:22
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.

None yet

3 participants