File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
test/mcp/server/transports Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -668,13 +668,15 @@ class StreamableHTTPTransportTest < ActiveSupport::TestCase
668668 test "stateless mode does not support server-sent events" do
669669 stateless_transport = StreamableHTTPTransport . new ( @server , stateless : true )
670670
671- assert_raises ( RuntimeError , "Stateless mode does not support notifications" ) do
671+ e = assert_raises ( RuntimeError ) do
672672 stateless_transport . send_notification (
673673 "test_notification" ,
674674 { message : "Hello" } ,
675675 session_id : "some_session_id" ,
676676 )
677677 end
678+
679+ assert_equal ( "Stateless mode does not support notifications" , e . message )
678680 end
679681
680682 test "stateless mode responds with 202 when client sends a notification/initialized request" do
You can’t perform that action at this time.
0 commit comments