diff --git a/internal/server/mcp_test.go b/internal/server/mcp_test.go index b1122edc3b..7fec2a669c 100644 --- a/internal/server/mcp_test.go +++ b/internal/server/mcp_test.go @@ -231,7 +231,7 @@ func TestMcpEndpointWithoutInitialized(t *testing.T) { "id": "tools-call-tool4", "error": map[string]any{ "code": -32600.0, - "message": "unauthorized Tool call: Please make sure you specify correct auth headers: ", + "message": "unauthorized Tool call: Please make sure you specify correct auth headers", }, }, }, @@ -834,7 +834,7 @@ func TestMcpEndpoint(t *testing.T) { "id": "tools-call-tool4", "error": map[string]any{ "code": -32600.0, - "message": "unauthorized Tool call: Please make sure you specify correct auth headers: ", + "message": "unauthorized Tool call: Please make sure you specify correct auth headers", }, }, }, diff --git a/tests/cloudsql/cloud_sql_restore_backup_test.go b/tests/cloudsql/cloud_sql_restore_backup_test.go index c0bc4f71ca..f1d634809e 100644 --- a/tests/cloudsql/cloud_sql_restore_backup_test.go +++ b/tests/cloudsql/cloud_sql_restore_backup_test.go @@ -97,7 +97,7 @@ func (h *masterRestoreBackupHandler) ServeHTTP(w http.ResponseWriter, r *http.Re default: w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusOK) - json.NewEncoder(w).Encode(map[string]string{ + _ = json.NewEncoder(w).Encode(map[string]string{ "error": "source project and instance are required when restoring via backup ID", }) return