Skip to content

Commit

Permalink
fix: update testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
idbeta committed Dec 2, 2020
1 parent b2767c3 commit 644bb3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/test/e2e/upstream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func TestUpstream_chash_remote_addr(t *testing.T) {
var respBody []byte
var count int
res := map[string]int{}
for i := 0; i <= 17; i++ {
for i := 0; i < 18; i++ {
resp, err = http.DefaultClient.Do(request)
assert.Nil(t, err)
respBody, err = ioutil.ReadAll(resp.Body)
Expand All @@ -260,7 +260,7 @@ func TestUpstream_chash_remote_addr(t *testing.T) {
}
resp.Body.Close()
}
assert.Equal(t, 18, res["1980"]+res["1981"]+res["1982"])
assert.Equal(t, 18, res["1982"])

tests = []HttpTestCase{
{
Expand Down

0 comments on commit 644bb3b

Please sign in to comment.