From 94bd81eb2dce3e744a922b27d710ce192a8a3662 Mon Sep 17 00:00:00 2001 From: Carl Raiden Worley Date: Thu, 30 Jan 2020 13:32:00 -0500 Subject: [PATCH] SERVER-45864 Record the start time for tests after creating the test logger --- buildscripts/resmokelib/testing/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/resmokelib/testing/report.py b/buildscripts/resmokelib/testing/report.py index 49709a063cc..4849bf6363c 100644 --- a/buildscripts/resmokelib/testing/report.py +++ b/buildscripts/resmokelib/testing/report.py @@ -93,7 +93,6 @@ class TestReport(unittest.TestResult): # pylint: disable=too-many-instance-attr unittest.TestResult.startTest(self, test) test_info = _TestInfo(test.id(), test.test_name, test.dynamic) - test_info.start_time = time.time() basename = test.basename() command = test.as_command() @@ -113,6 +112,7 @@ class TestReport(unittest.TestResult): # pylint: disable=too-many-instance-attr test_info.url_endpoint = test_logger.url_endpoint test.override_logger(test_logger) + test_info.start_time = time.time() def stopTest(self, test): # pylint: disable=invalid-name """Call after 'test' has run."""