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:
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user