[GODRIVER-2852] Fix failing "TestCMAPSpec" test Created: 19/May/23  Updated: 24/Aug/23  Resolved: 24/Aug/23

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

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

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 following tests fail frequently:

TestCMAPSpec/pool-create-min-size.json

CMAP_spec_test.go:290: unexpected event occurred: expected: ConnectionCheckedOut, actual: ConnectionCreated

Check out an example failure here.

TestCMAPSpec/pool-clear-min-size.json

CMAP_spec_test.go:292: unexpected event occurred: expected: ConnectionPoolReady, actual: ConnectionCreated
CMAP_spec_test.go:292: unexpected event occurred: expected: ConnectionCreated, actual: ConnectionPoolReady

Check out an example failure here.

Definition of done:

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


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

Author:

{'name': 'Matt Dale', 'email': '9760375+matthewdale@users.noreply.github.com', 'username': 'matthewdale'}

Message: GODRIVER-2852 Use a mock connection for all CMAP spec tests. (#1321)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/67f257ac1d970452575fa24d7394e1ed46d1d725

Comment by Matt Dale [ 18/Aug/23 ]

PR: https://github.com/mongodb/mongo-go-driver/pull/1321

Comment by Matt Dale [ 15/Jul/23 ]

Testing changes with a draft PR: https://github.com/mongodb/mongo-go-driver/pull/1321

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