Merge pull request #901 from elasticsales/fix-test-with-profiling

Fix the unit tests for mongodb w/ profiling enabled
This commit is contained in:
Omer Katz 2015-03-18 16:38:31 +02:00
commit ed7fc86d69

View File

@ -23,7 +23,7 @@ class MongoTestCase(TestCase):
def dropCollections(self): def dropCollections(self):
for collection in self.db.collection_names(): for collection in self.db.collection_names():
if collection == 'system.indexes': if collection.startswith('system.'):
continue continue
self.db.drop_collection(collection) self.db.drop_collection(collection)