Skip to content

Stop leaking test servers - #2497

Open
Mirko-von-Leipzig wants to merge 2 commits into
nextfrom
mirko/fix-test-leak
Open

Stop leaking test servers#2497
Mirko-von-Leipzig wants to merge 2 commits into
nextfrom
mirko/fix-test-leak

Conversation

@Mirko-von-Leipzig

@Mirko-von-Leipzig Mirko-von-Leipzig commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Our RPC tests contain the block producer API, which internally spawns the mempool monitoring task. This task is never cancelled and leaks. Not the biggest deal, but since this is part of the public API of the block producer crate, I thought I'd fix it.

I'm also okay with dropping this PR as unnecessary fluff.

Changelog

changelog = "none"
reason    = "Internal change only."

Comment thread crates/rpc/src/tests.rs
}
.serve(shutdown)
.await
.expect("Failed to start serving store");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
.expect("Failed to start serving store");
.expect("Failed to start serving RPC");

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