Skip to content

Commit

Permalink
fix: check e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
starsz committed Dec 18, 2020
1 parent 616f68b commit f52a4d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/test/e2e/balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f52a4d9

Please sign in to comment.