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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 7.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2023-11-13

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: