Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-82765

Use a macro instead of a function call as an assert helper in gRPC tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2023-11-13
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            erin.mcnulty@mongodb.com Erin McNulty
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: