Go: Bump to v1.24.1. (#12942)

Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
This commit is contained in:
k8s-infra-cherrypick-robot 2025-03-05 07:33:46 -08:00 committed by GitHub
parent e90815df9f
commit 7502f9dc65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 8 additions and 9 deletions

View file

@ -117,7 +117,7 @@ func TestParse(t *testing.T) {
ing.SetAnnotations(testCase.annotations)
result, err := ap.Parse(ing)
if err != nil {
t.Errorf(err.Error())
t.Error(err)
}
if !reflect.DeepEqual(result, testCase.expected) {
t.Errorf("expected %+v but returned %+v, annotations: %s", testCase.expected, result, testCase.annotations)

View file

@ -110,7 +110,7 @@ func TestStatusCollector(t *testing.T) {
w.WriteHeader(http.StatusOK)
if r.URL.Path == "/nginx_status" {
_, err := fmt.Fprintf(w, c.mock)
_, err := fmt.Fprint(w, c.mock)
if err != nil {
t.Fatal(err)
}