Skip to content

Commit

Permalink
[fix] change testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
telanflow committed Jul 11, 2020
1 parent c067273 commit 542cf8b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ import (
"testing"
)

func TestNewRequest(t *testing.T) {
req := NewRequest().SetMethod(http.MethodGet).SetUrl("http://www.baidu.com")
t.Log(req)
}

func TestRequest_Copy(t *testing.T) {
asserts := assert.New(t)

Expand All @@ -31,7 +26,7 @@ func TestRequest_Copy(t *testing.T) {
p1 = fmt.Sprintf("%p", &req1.Id)
p2 = fmt.Sprintf("%p", &req2.Id)
asserts.NotEqual(p1, p2)
asserts.Equal(req1.Id, req2.Id)
asserts.NotEqual(req1.Id, req2.Id)

p1 = fmt.Sprintf("%p", req1.URL)
p2 = fmt.Sprintf("%p", req2.URL)
Expand Down

0 comments on commit 542cf8b

Please sign in to comment.