@@ -84,7 +84,7 @@ func TestMCPServer_RemoveResource(t *testing.T) {
8484 expectedNotifications : 1 ,
8585 validate : func (t * testing.T , notifications []mcp.JSONRPCNotification , resourcesList mcp.JSONRPCMessage ) {
8686 // 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 )
8888
8989 // Verify we now have only one resource
9090 resp , ok := resourcesList .(mcp.JSONRPCResponse )
@@ -133,7 +133,7 @@ func TestMCPServer_RemoveResource(t *testing.T) {
133133 expectedNotifications : 1 , // Still sends a notification
134134 validate : func (t * testing.T , notifications []mcp.JSONRPCNotification , resourcesList mcp.JSONRPCMessage ) {
135135 // 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 )
137137
138138 // The original resource should still be there
139139 resp , ok := resourcesList .(mcp.JSONRPCResponse )
0 commit comments