[GODRIVER-2851] Fix failing "TestCMAPProse" test Created: 19/May/23  Updated: 28/Oct/23  Resolved: 21/Jul/23

Status: Closed
Project: Go Driver
Component/s: CMAP
Affects Version/s: None
Fix Version/s: 1.12.1

Type: Bug Priority: Unknown
Reporter: Matt Dale Assignee: Qingyang Hu
Resolution: Fixed Votes: 0
Labels: greenerbuild
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Documentation Changes Summary:

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?


 Description   

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.


 Comments   
Comment by Githook User [ 01/Aug/23 ]

Author:

{'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}

Message: GODRIVER-2851 Fix failing "TestCMAPProse" test. (#1316)
Branch: release/1.12
https://github.com/mongodb/mongo-go-driver/commit/989b3e1c8f5e8e07bfcc479eaa1e9e6bfa1eb8cf

Comment by Githook User [ 21/Jul/23 ]

Author:

{'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}

Message: GODRIVER-2851 Fix failing "TestCMAPProse" test. (#1316)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/4567eabd8d237894702bd3f510d2b855c8b51e53

Generated at Thu Feb 08 08:39:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.