summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/hooks/cleanup_concurrency_workloads.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/resmokelib/testing/hooks/cleanup_concurrency_workloads.py')
-rw-r--r--buildscripts/resmokelib/testing/hooks/cleanup_concurrency_workloads.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/cleanup_concurrency_workloads.py b/buildscripts/resmokelib/testing/hooks/cleanup_concurrency_workloads.py
index 2ad144e5ec8..e391f8e5664 100644
--- a/buildscripts/resmokelib/testing/hooks/cleanup_concurrency_workloads.py
+++ b/buildscripts/resmokelib/testing/hooks/cleanup_concurrency_workloads.py
@@ -59,7 +59,7 @@ class CleanupConcurrencyWorkloadsTestCase(interface.DynamicTestCase):
"""Execute drop databases hook."""
same_db_name = None
client = self._hook.fixture.mongo_client()
- db_names = client.database_names()
+ db_names = client.list_database_names()
exclude_dbs = copy.copy(self._hook.exclude_dbs)
if self._hook.same_db_name:
@@ -84,7 +84,7 @@ class CleanupConcurrencyWorkloadsTestCase(interface.DynamicTestCase):
if self._hook.same_collection_name and same_db_name:
self.logger.info("Dropping all collections in db %s except for %s", same_db_name,
self._hook.same_collection_name)
- colls = client[same_db_name].collection_names()
+ colls = client[same_db_name].list_collection_names()
for coll in [coll for coll in colls if coll != self._hook.same_collection_name]:
self.logger.info("Dropping db %s collection %s", same_db_name, coll)
try: