1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

test: remove t.Log()

This commit is contained in:
dudaodong
2023-04-26 14:59:45 +08:00
parent 581e338889
commit 4311b9ac66
14 changed files with 15 additions and 38 deletions

View File

@@ -182,7 +182,7 @@ func TestHttpClient_Get(t *testing.T) {
var todo Todo
err = httpClient.DecodeResponse(resp, &todo)
if err != nil {
t.Log(err)
t.FailNow()
}
assert.Equal(1, todo.Id)

View File

@@ -103,7 +103,7 @@ func TestEncodeUrl(t *testing.T) {
urlAddr := "http://www.lancet.com?a=1&b=[2]"
encodedUrl, err := EncodeUrl(urlAddr)
if err != nil {
t.Log(err)
t.Fail()
}
expected := "http://www.lancet.com?a=1&b=%5B2%5D"