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 @@ -666,13 +666,15 @@ class StreamableHTTPTransportTest < ActiveSupport::TestCase
666666 test "stateless mode does not support server-sent events" do
667667 stateless_transport = StreamableHTTPTransport . new ( @server , stateless : true )
668668
669- assert_raises ( RuntimeError , "Stateless mode does not support notifications" ) do
669+ e = assert_raises ( RuntimeError ) do
670670 stateless_transport . send_notification (
671671 "test_notification" ,
672672 { message : "Hello" } ,
673673 session_id : "some_session_id" ,
674674 )
675675 end
676+
677+ assert_equal ( "Stateless mode does not support notifications" , e . message )
676678 end
677679
678680 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