From 0deea9fc8235c6c6baa8e81e70f5c3271944435e Mon Sep 17 00:00:00 2001 From: huangsimin Date: Thu, 8 Nov 2018 14:39:23 +0800 Subject: [PATCH] nothing! --- session_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/session_test.go b/session_test.go index 7b8055f..00a02db 100644 --- a/session_test.go +++ b/session_test.go @@ -76,7 +76,7 @@ func TestSession_Post(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { ses := NewSession() - got, err := ses.Post("http://httpbin.org/post").SetBodyParams(tt.args.params...).Execute() + got, err := ses.Post("http://httpbin.org/post").SetBody(tt.args.params...).Execute() if err != nil { t.Errorf("Metchod error = %v", err) @@ -127,7 +127,7 @@ func TestSession_Setparams(t *testing.T) { t.Run(tt.name, func(t *testing.T) { ses := NewSession() - got, err := ses.Post("http://httpbin.org/post").SetBodyParams(tt.args.params...).Execute() + got, err := ses.Post("http://httpbin.org/post").SetBody(tt.args.params...).Execute() if (err != nil) != tt.wantErr { t.Errorf("Metchod error = %v, wantErr %v", err, tt.wantErr) return @@ -169,7 +169,7 @@ func TestSession_PostUploadFile(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { ses := NewSession() - got, err := ses.Post("http://httpbin.org/post").SetBodyParams(tt.args.params, TypeFormData).Execute() + got, err := ses.Post("http://httpbin.org/post").SetBody(tt.args.params, TypeFormData).Execute() if err != nil { t.Errorf("Metchod error = %v", err) @@ -213,7 +213,7 @@ func TestSession_Put(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { ses := NewSession() - got, err := ses.Put("http://httpbin.org/put").SetBodyParams(tt.args.params, TypeFormData).Execute() + got, err := ses.Put("http://httpbin.org/put").SetBody(tt.args.params, TypeFormData).Execute() if err != nil { t.Errorf("Metchod error = %v", err) @@ -257,7 +257,7 @@ func TestSession_Patch(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { ses := NewSession() - got, err := ses.Patch("http://httpbin.org/patch").SetBodyParams(tt.args.params, TypeFormData).Execute() + got, err := ses.Patch("http://httpbin.org/patch").SetBody(tt.args.params, TypeFormData).Execute() if err != nil { t.Errorf("Metchod error = %v", err)