@@ -84,7 +84,7 @@ func TestMCPServer_RemoveResource(t *testing.T) {
84
84
expectedNotifications : 1 ,
85
85
validate : func (t * testing.T , notifications []mcp.JSONRPCNotification , resourcesList mcp.JSONRPCMessage ) {
86
86
// Check that we received a list_changed notification
87
- assert .Equal (t , "resources/list_changed" , notifications [0 ].Method )
87
+ assert .Equal (t , mcp . MethodNotificationResourcesListChanged , notifications [0 ].Method )
88
88
89
89
// Verify we now have only one resource
90
90
resp , ok := resourcesList .(mcp.JSONRPCResponse )
@@ -133,7 +133,7 @@ func TestMCPServer_RemoveResource(t *testing.T) {
133
133
expectedNotifications : 1 , // Still sends a notification
134
134
validate : func (t * testing.T , notifications []mcp.JSONRPCNotification , resourcesList mcp.JSONRPCMessage ) {
135
135
// Check that we received a list_changed notification
136
- assert .Equal (t , "resources/list_changed" , notifications [0 ].Method )
136
+ assert .Equal (t , mcp . MethodNotificationResourcesListChanged , notifications [0 ].Method )
137
137
138
138
// The original resource should still be there
139
139
resp , ok := resourcesList .(mcp.JSONRPCResponse )
0 commit comments