mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 09:06:21 +01:00
SERVER-45864 Record the start time for tests after creating the test logger
This commit is contained in:
parent
ab01304d9c
commit
94bd81eb2d
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user