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

Share gRPC channels again #352

Merged
merged 2 commits into from
Jun 23, 2024
Merged

Share gRPC channels again #352

merged 2 commits into from
Jun 23, 2024

Conversation

AArnott
Copy link
Collaborator

@AArnott AArnott commented Jun 23, 2024

This reverts part of commit 4a2fe0c and fixes the test instability in a better way as tipped off by @AmeliasCode in this comment and specifically shared by @gwy15 in this comment.

It seems the problem was that after the first test finished, the runtime that 'owned' the Mutex or channel was shut down, breaking it for all subsequent users. By changing our tests to all use a shared runtime, the channel isn't killed and can therefore work in subsequent tests.

This reverts part of commit 4a2fe0c
and fixes the test instability in a better way as tipped off by @AmeliasCode in [this comment](hyperium/tonic#1751 (comment)) and specifically shared by @gwy15 in [this comment](tokio-rs/tokio#2374 (comment)).

It seems the problem was that after the first test finished, the runtime that 'owned' the Mutex or channel was shut down, breaking it for all subsequent users. By changing our tests to all use a shared runtime, the channel isn't killed and can therefore work in subsequent tests.
@AArnott AArnott enabled auto-merge June 23, 2024 19:45
@AArnott AArnott merged commit 197890b into main Jun 23, 2024
7 checks passed
@AArnott AArnott deleted the sharedGrpcChannels branch June 23, 2024 20:15
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.

1 participant