Skip to content

Commit c8158e0

Browse files
bigHkoic
andauthored
Update test/mcp/server/transports/streamable_http_transport_test.rb
Co-authored-by: Koichi ITO <[email protected]>
1 parent 0ecdd98 commit c8158e0

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
@@ -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

0 commit comments

Comments
 (0)