fix mcp test

This commit is contained in:
duwenxin
2026-02-09 12:03:23 -05:00
parent 7fc48e2693
commit 3353d82f64
2 changed files with 3 additions and 3 deletions

View File

@@ -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: <nil>",
"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: <nil>",
"message": "unauthorized Tool call: Please make sure you specify correct auth headers",
},
},
},

View File

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