Skip to content

Commit 39c361a

Browse files
bigHkoic
andcommitted
Update test/mcp/server/transports/streamable_http_transport_test.rb
Co-authored-by: Koichi ITO <[email protected]>
1 parent 998bf8c commit 39c361a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/mcp/server/transports/streamable_http_transport_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)