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

signal: remove oneshot channels from tests #7015

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

Darksonn
Copy link
Contributor

@Darksonn Darksonn commented Dec 5, 2024

The oneshot channels don't make any sense here. Tasks in a current-thread runtime will run once the main task yields, which is always after the fire.send(()) call. Thus, clean up and simplify the tests.

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-signal Module: tokio/signal labels Dec 5, 2024
@Darksonn Darksonn enabled auto-merge (squash) December 5, 2024 09:22
@Darksonn Darksonn requested a review from ipetkov December 5, 2024 09:23
@Darksonn Darksonn merged commit 405d746 into master Dec 5, 2024
81 of 86 checks passed
@Darksonn Darksonn deleted the alice/signal-test-no-oneshot branch December 5, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-signal Module: tokio/signal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants