summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Shchatko <mikhail.shchatko@mongodb.com>2021-11-04 17:49:17 +0300
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-05 07:42:54 +0000
commit1384eee3fa37888fed9a5ef7df74bf9db9f116b1 (patch)
treea47477d4a81dc762bf5ab0a6a4be62123f0113f0
parent598cf0898f44d8d47edb236f38a1d0fa6cda494c (diff)
downloadmongo-1384eee3fa37888fed9a5ef7df74bf9db9f116b1.tar.gz
SERVER-61238 Don't overwrite hook logger in TenantMigrationThread
-rw-r--r--buildscripts/resmokelib/testing/hooks/tenant_migration.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/tenant_migration.py b/buildscripts/resmokelib/testing/hooks/tenant_migration.py
index 8cb96cc9559..330245c46c2 100644
--- a/buildscripts/resmokelib/testing/hooks/tenant_migration.py
+++ b/buildscripts/resmokelib/testing/hooks/tenant_migration.py
@@ -61,7 +61,7 @@ class ContinuousTenantMigration(interface.Hook): # pylint: disable=too-many-ins
def before_test(self, test, test_report):
"""Before test."""
self.logger.info("Resuming the tenant migration thread.")
- self._tenant_migration_thread.resume(test.logger)
+ self._tenant_migration_thread.resume()
def after_test(self, test, test_report):
"""After test."""
@@ -325,7 +325,7 @@ class _TenantMigrationThread(threading.Thread): # pylint: disable=too-many-inst
self.__lifecycle.stop()
self._is_stopped_evt.set()
# Unpause to allow the thread to finish.
- self.resume(self.logger)
+ self.resume()
self.join()
def pause(self):
@@ -344,9 +344,8 @@ class _TenantMigrationThread(threading.Thread): # pylint: disable=too-many-inst
" ContinuousTenantMigration, but wasn't".format(
self._tenant_migration_fixture.pids()))
- def resume(self, logger):
+ def resume(self):
"""Resume the thread before test."""
- self.logger = logger
self.__lifecycle.mark_test_started()
def _wait(self, timeout):