Fix failing "TestCMAPProse" test

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 1.12.1
    • Affects Version/s: None
    • Component/s: CMAP
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      The test

      TestCMAPProse/created_and_closed_events/checkOut/connection_error_publishes_events
      

      fails frequently with an error like

      cmap_prose_test.go:132:
          	Error Trace:	x/mongo/driver/topology/cmap_prose_test.go:132
          	Error:      	Not equal:
          	            	expected: 1
          	            	actual  : 0
          	Test:       	TestCMAPProse/created_and_closed_events/checkOut/connection_error_publishes_events
          	Messages:   	expected 1 closed events, got 0
      

      Check out an example test failure here.

      Definition of done:

      • All TestCMAPProse test cases pass reliably on Evergreen CI.
      • Remove any skipped TestCMAPProse tests tagged with this ticket.

              Assignee:
              Qingyang Hu
              Reporter:
              Matt Dale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: