Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

fix: Use latest connection-model and keep reference to tunnel to be able to close it when disconnecting native client COMPASS-4474 #308

Merged

Conversation

gribnoysup
Copy link
Contributor

Follow-up to mongodb-js/connection-model#352 that makes sure that when connection-model returns a tunnel during connect, we close it before resolving a disconnect callback

Copy link

@rose-m rose-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just have a minor question (that might be about something non-existent :D)

Copy link
Contributor

@alenakhineika alenakhineika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it is possible to add a test for that to data-service? I believe you tested it in the connection model, but maybe to test it here as well would be nice.

@gribnoysup
Copy link
Contributor Author

@alenakhineika good point, not sure we can write one without mocking a whole bunch of stuff, but will add something! Thanks for nudging me to write more tests, I am getting a bit lazy with it sometimes 😊

@gribnoysup
Copy link
Contributor Author

@alenakhineika added a test case in 5bb7cbc

@gribnoysup gribnoysup merged commit 0f29535 into master Mar 10, 2021
@gribnoysup gribnoysup deleted the compass-4474-make-sure-ssh-tunnel-is-closed-on-disconnect branch March 10, 2021 13:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants