Problem
The runtime module (src/server/runtime.rs) is currently 466 lines, exceeding the 400-line limit. Move the #[cfg(test)] mod tests block into a sibling test module or integration tests to keep the runtime module focused and maintainable.
Follow-up outline
- Create
src/server/runtime/tests.rs (or tests/accept_backoff.rs) and move the test module there.
- Keep
MockAcceptListener generation in the same module as the trait (already gated with #[cfg_attr(test, automock)]), so tests can import super::MockAcceptListener.
Context
- Lines 288-465 contain the test module that should be extracted
- This issue was identified during PR review
Backlinks
Requested by: @leynos
Problem
The runtime module (src/server/runtime.rs) is currently 466 lines, exceeding the 400-line limit. Move the
#[cfg(test)] mod testsblock into a sibling test module or integration tests to keep the runtime module focused and maintainable.Follow-up outline
src/server/runtime/tests.rs(ortests/accept_backoff.rs) and move the test module there.MockAcceptListenergeneration in the same module as the trait (already gated with#[cfg_attr(test, automock)]), so tests can importsuper::MockAcceptListener.Context
Backlinks
Requested by: @leynos