Skip to content

test: clean up gRPC channels after each test#175

Open
ivanauth wants to merge 1 commit into
authzed:mainfrom
ivanauth:fix/issue-113-grpc-cleanup
Open

test: clean up gRPC channels after each test#175
ivanauth wants to merge 1 commit into
authzed:mainfrom
ivanauth:fix/issue-113-grpc-cleanup

Conversation

@ivanauth

Copy link
Copy Markdown
Contributor

Closes #113.

Registers each integration-test channel with grpc's GrpcCleanupRule (io.grpc:grpc-testing) so channels are guaranteed to shut down when the test finishes, per https://grpc.io/blog/graceful-cleanup-junit-tests/. Test-only.

TestClient built ManagedChannels that were never shut down, so channel
cleanup was left to chance. Registering every channel with grpc-testing's
GrpcCleanupRule guarantees an orderly shutdown when each test finishes,
per https://grpc.io/blog/graceful-cleanup-junit-tests/.

Signed-off-by: ivanauth <ivan@authzed.com>
@ivanauth
ivanauth requested a review from a team as a code owner July 16, 2026 18:27
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.

Make sure that tests clean up channels

1 participant