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

Run server on a regular tokio task in tests #323

Merged
merged 1 commit into from May 1, 2024

Conversation

einarmo
Copy link
Contributor

@einarmo einarmo commented Apr 29, 2024

I missed this in my original client implementation. Using spawn_blocking means that tests tend to not terminate if something goes wrong, but the server is async, so that is just completely unnecessary. This neatly handles panics in tasks and properly finishes the test if something goes wrong.

I missed this in my original client implementation. Using
`spawn_blocking` means that tests tend to not terminate if something
goes wrong, but the server _is_ async, so that is just completely
unnecessary. This neatly handles panics in tasks and properly finishes
the test if something goes wrong.
@locka99 locka99 merged commit fa65dbe into locka99:master May 1, 2024
2 of 3 checks passed
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.

None yet

2 participants