cloudant / python-cloudant

A Python library for Cloudant and CouchDB
Apache License 2.0
163 stars 55 forks source link

Some tests not cleaning up databases #248

Closed ricellis closed 7 years ago

ricellis commented 7 years ago

I've seen 170+ test databases left behind on the test server with names of the form db-03d4d6a9-4ccf-4cee-bc67-6ab9dc33121b that come from python-cloudant. Clearly under some circumstances the databases are not cleaned up, we need to find and fix that.

emlaver commented 7 years ago

I've run several tests against all the python modules and have a branch with some logging to see if any databases are left over from Jenkins builds. Currently, I don't see any databases left over. It's possible that the test databases left over were from a WIP branch.

ricellis commented 7 years ago

I also noticed that they were not present after a clean run when looking into another issue recently. I wondered if there were some failure cases that could cause them to be left behind, but I haven't had a chance to investigate further.

emlaver commented 7 years ago

After additional testing on 248-fix-tests-not-removing-databases branch and master branch I do not see any test databases left behind. @ricellis Can we close this ticket for now?