From 1a92c055d3fddb0bdd372602e9b2120a3ed45f4d Mon Sep 17 00:00:00 2001 From: Jack Amadeo Date: Mon, 20 Jul 2026 16:56:31 -0400 Subject: [PATCH] fix: .with_stateful_mode -> .with_legacy_session_mode --- crates/rmcp/tests/test_streamable_http_json_response.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rmcp/tests/test_streamable_http_json_response.rs b/crates/rmcp/tests/test_streamable_http_json_response.rs index 8705f781..b1c09f51 100644 --- a/crates/rmcp/tests/test_streamable_http_json_response.rs +++ b/crates/rmcp/tests/test_streamable_http_json_response.rs @@ -182,7 +182,7 @@ async fn stateless_negotiated_terminal_response_returns_application_json() -> an let ct = CancellationToken::new(); let (client, url, ct) = spawn_progress_server( StreamableHttpServerConfig::default() - .with_stateful_mode(false) + .with_legacy_session_mode(false) .with_json_response(true) .with_sse_keep_alive(None) .with_cancellation_token(ct.child_token()), @@ -277,7 +277,7 @@ async fn stateless_negotiated_json_response_falls_back_to_sse_for_progress() -> let ct = CancellationToken::new(); let (client, url, ct) = spawn_progress_server( StreamableHttpServerConfig::default() - .with_stateful_mode(false) + .with_legacy_session_mode(false) .with_json_response(true) .with_sse_keep_alive(None) .with_cancellation_token(ct.child_token()),