diff --git a/api/test/e2e/balancer_test.go b/api/test/e2e/balancer_test.go index 1801d959bd..1f9b47a0e6 100644 --- a/api/test/e2e/balancer_test.go +++ b/api/test/e2e/balancer_test.go @@ -82,7 +82,9 @@ func TestBalancer_roundrobin_with_weight(t *testing.T) { res := map[string]int{} for i := 0; i < 18; i++ { resp, err = http.DefaultClient.Do(request) - assert.Nil(t, err) + if err != nil { + assert.Equal(t, "", err.Error()) + } respBody, err = ioutil.ReadAll(resp.Body) body := string(respBody) if _, ok := res[body]; !ok {