diff --git a/pkg/apiserver/alerts_test.go b/pkg/apiserver/alerts_test.go index 6ba25110d05..e51987ba71a 100644 --- a/pkg/apiserver/alerts_test.go +++ b/pkg/apiserver/alerts_test.go @@ -242,7 +242,7 @@ func TestAlertListFilters(t *testing.T) { w = lapi.RecordResponse(t, ctx, "GET", "/v1/alerts?ip=gruueq", emptyBody, "password") assert.Equal(t, 500, w.Code) - assert.JSONEq(t, `{"message":"invalid ip address ''gruueq'"}`, w.Body.String()) + assert.JSONEq(t, `{"message":"invalid ip address 'gruueq'"}`, w.Body.String()) // test range (ok)