Skip to content

Commit 01daccd

Browse files
committed
Add a missing assertion in ConfigurationTest
This PR adds a missing assertion in `ConfigurationTest`. Revert "Add the default implementation to `MCP::Configuration#exception_reporter`" This reverts commit 51816282139dcf8afbdeeeda7fad2cf3e056c28b.
1 parent 00392b6 commit 01daccd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/mcp/configuration_test.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ class ConfigurationTest < ActiveSupport::TestCase
1212
exception = StandardError.new("test error")
1313
server_context = { test: "context" }
1414

15-
# Should not raise any errors
16-
config.exception_reporter.call(exception, server_context)
15+
assert_nothing_raised do
16+
config.exception_reporter.call(exception, server_context)
17+
end
1718
end
1819

1920
test "allows setting a custom exception reporter" do

0 commit comments

Comments
 (0)