Skip to content

Commit

Permalink
修改测试代码, #49
Browse files Browse the repository at this point in the history
  • Loading branch information
guonaihong committed Sep 14, 2019
1 parent 6ae124a commit 48c8a14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,10 @@ func TestProxy(t *testing.T) {

code := 0
var s string
err := Def().GET(ts.URL + "/login").SetBody(proxyTs.URL).SetProxy(proxyTs.URL).BindBody(&s).Code(&code).Do()

c := http.Client{}

err := New(&c).GET(ts.URL + "/login").SetBody(proxyTs.URL).SetProxy(proxyTs.URL).BindBody(&s).Code(&code).Do()

assert.NoError(t, err)
assert.Equal(t, 200, code)
Expand Down

0 comments on commit 48c8a14

Please sign in to comment.