Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Dec 6, 2017
1 parent ae4c839 commit e487483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ func TestDumpText(t *testing.T) {
if err != nil {
t.Fatal(err)
}
dump := resp.dump()
for _, keyword := range []string{reqBody, respBody, reqHeader, respHeader, "cost"} {
dump := resp.Dump()
for _, keyword := range []string{reqBody, respBody, reqHeader, respHeader} {
if !strings.Contains(dump, keyword) {
t.Errorf("dump missing part, want: %s", keyword)
}
Expand All @@ -49,7 +49,7 @@ func TestDumpUpload(t *testing.T) {
if err != nil {
t.Fatal(err)
}
dump := r.dump()
dump := r.Dump()
contains := []string{
`Content-Disposition: form-data; name="hello"`,
`Content-Disposition: form-data; name="media"; filename="1.txt"`,
Expand Down
2 changes: 1 addition & 1 deletion req_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

func TestUrlParam(t *testing.T) {
m := map[string]string{
m := map[string]interface{}{
"access_token": "123abc",
"name": "roc",
"enc": "中文",
Expand Down

0 comments on commit e487483

Please sign in to comment.