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

server: Abort server tokio task when TestReceiver drops #1305

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

svix-jplatte
Copy link
Member

It doesn't make sense for the server tokio task to continue running after the TestReciver is dropped. In usual tokio::tests it's probably stopped at the end of the test anyways, but stopping it in Drop seems cleaner.

@svix-jplatte svix-jplatte requested a review from a team as a code owner April 30, 2024 15:11
@svix-jplatte svix-jplatte merged commit 21abe91 into main Apr 30, 2024
5 checks passed
@svix-jplatte svix-jplatte deleted the jplatte/test-receiver-drop branch April 30, 2024 15:32
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.

2 participants