Go: Bump to v1.24.1. (#12942)
Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
This commit is contained in:
parent
e90815df9f
commit
7502f9dc65
9 changed files with 8 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue