Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2075

Update "mtest.T.Get*Event()" documentation and function behavior to match

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.13.0, 1.13.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Currently the GetStartedEvent(), GetSucceededEvent(), and GetFailedEvent() helpers on the mtest.T type document that they return the "most recent" event of each type, but actually return the first event of each type. Update the documentation and/or function behavior so that they match.

      See code: https://github.com/mongodb/mongo-go-driver/blob/69f95615de85a03ee8bfe6b661686010215b106c/mongo/integration/mtest/mongotest.go#L263-L294

      Questions:

      • Is the intent to return the most recent event or the first event?

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: