Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v10] Make it possible to test gateway opening/closing in Connect #14183

Merged
merged 12 commits into from
Jul 12, 2022

Conversation

ravicious
Copy link
Member

Backport #14135 to branch/v10

This is not a huge change, but I want to wait for the initial v10 release before merging this.

ravicious added 8 commits July 7, 2022 14:46
Open() and Close() used to not return any error and Open() used to start
the gateway in a goroutine, making it rather hard to write tests for it.

This commit makes it so that Open() and Close() return errors and Open()
blocks.

Adjustments have been made to other places in lib/teleterm to account
for that missing goroutine and returned errors.
While writing tests for the gateways, I was relying heavily on tests for
the local proxy. I noticed that it starts the server but doesn't close it
so I added an appropriate call to the cleanup function.
@ravicious ravicious marked this pull request as ready for review July 8, 2022 16:48
@github-actions github-actions bot requested a review from espadolini July 8, 2022 16:48
@ravicious ravicious enabled auto-merge (squash) July 12, 2022 09:58
@ravicious ravicious merged commit a36d6ff into branch/v10 Jul 12, 2022
@ravicious ravicious deleted the bot/backport-14135-branch/v10 branch July 12, 2022 13:49
@webvictim webvictim mentioned this pull request Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants