[SERVER-82765] Use a macro instead of a function call as an assert helper in gRPC tests Created: 03/Nov/23 Updated: 09/Nov/23 Resolved: 09/Nov/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.3.0-rc0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Erin McNulty | Assignee: | Erin McNulty |
| 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: | Service Arch 2023-11-13 |
| Participants: |
| Description |
|
Right now, we have a helper function that ASSERTs if a client stub can connect with the gRPC server. However, when that assertion fails like in [BF-30671] title|https://jira.mongodb.org/browse/BF-30671], the line number of the failure is not useful because it is just the line number of the assert inside the function call. Change this helper to be a macro so that we get useful line number information in case of a failure. |
| Comments |
| Comment by Githook User [ 09/Nov/23 ] |
|
Author: {'name': 'Erin McNulty', 'email': 'erin.mcnulty@mongodb.com', 'username': 'erin2722'}Message: |