[SERVER-63273] ClusterToClusterReplication hook can error if no tests were run Created: 03/Feb/22 Updated: 29/Oct/23 Resolved: 04/Feb/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Vishnu Kaushik | Assignee: | Vishnu Kaushik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Repl 2022-02-21 |
| Participants: |
| Description |
|
The self._last_test variable is only set after a test was run. Therefore, if no test was run, when we use the variable to run checks at the end of a suite we will face a AttributeError: 'NoneType' object has no attribute 'logger' problem. |
| Comments |
| Comment by Githook User [ 04/Feb/22 ] |
|
Author: {'name': 'Vishnu Kaushik', 'email': 'vishnu.kaushik@mongodb.com', 'username': 'kauboy26'}Message: |