From e60e3b6d200c5846dab0ff325bb5460f339c950a Mon Sep 17 00:00:00 2001 From: Luca Ciucci Date: Thu, 15 Oct 2026 12:20:38 +0200 Subject: [PATCH] fix(test): gate cancelled response tests on stdio features The cancellation response test starts a helper server with `transport::stdio()`, but transport-io is not enabled by default. Declare the server and transport-io requirements so Cargo skips the test when those features are unavailable instead of failing to compile it. --- crates/rmcp/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/rmcp/Cargo.toml b/crates/rmcp/Cargo.toml index 7f172597d..2a5de19d7 100644 --- a/crates/rmcp/Cargo.toml +++ b/crates/rmcp/Cargo.toml @@ -488,3 +488,8 @@ path = "tests/test_streamable_http_disconnect_cancel.rs" name = "test_sep_2260_stream_routing" required-features = ["server", "elicitation", "transport-streamable-http-server", "reqwest"] path = "tests/test_sep_2260_stream_routing.rs" + +[[test]] +name = "test_cancelled_response" +path = "tests/test_cancelled_response.rs" +required-features = ["server", "transport-io"]