[GODRIVER-2964] Fix failing "TestClient/tls_connection" Created: 29/Aug/23  Updated: 08/Nov/23  Resolved: 05/Sep/23

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

Type: Improvement Priority: Unknown
Reporter: Qingyang Hu 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   

TestClient/tls_connection fails frequently with an error like

[2023/08/28 13:10:16.696]     client_test.go:130:
[2023/08/28 13:10:16.696]         	Error Trace:	/data/mci/fb2b5962992956e6de9486d36f0f4dab/src/go.mongodb.org/mongo-driver/mongo/integration/client_test.go:130
[2023/08/28 13:10:16.696]         	            				/data/mci/fb2b5962992956e6de9486d36f0f4dab/src/go.mongodb.org/mongo-driver/mongo/integration/mongotest.go:266
[2023/08/28 13:10:16.696]         	Error:      	Expected nil, but got: &errors.errorString{s:"element not found"}
[2023/08/28 13:10:16.696]         	Test:       	TestClient/tls_connection
[2023/08/28 13:10:16.696]         	Messages:   	SSLServerHasCertificateAuthority not found in result

Check out an example test failure here.

 

The server has removed this field referring to this commit: https://github.com/mongodb/mongo/commit/3e37b1e2a4c341cd456125c804f7700b3056519a#diff-18f4cd1556fcc866bba814f9240a5ade449626b19bbe15107d30ea3e74f6d10bL881



 Comments   
Comment by Githook User [ 08/Nov/23 ]

Author:

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

Message: GODRIVER-2964 Fix failing "TestClient/tls_connection". (#1374)
Branch: release/1.12
https://github.com/mongodb/mongo-go-driver/commit/828810e5ee1b65752e639d2122ce5e7afa5f8ed9

Comment by Githook User [ 05/Sep/23 ]

Author:

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

Message: GODRIVER-2964 Fix failing "TestClient/tls_connection". (#1374)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/a3fcd7604ce98c28aa7952c007c5aff9cba7f2b2

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