mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 08:50:56 +00:00
fix the gosimple
This commit is contained in:
parent
5ac0cb929c
commit
aa3d6c5363
@ -52,7 +52,7 @@ func TestErrorCode_01(t *testing.T) {
|
|||||||
if w.Code != code {
|
if w.Code != code {
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
if !strings.Contains(string(w.Body.Bytes()), http.StatusText(code)) {
|
if !strings.Contains(w.Body.String(), http.StatusText(code)) {
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -82,7 +82,7 @@ func TestErrorCode_03(t *testing.T) {
|
|||||||
if w.Code != 200 {
|
if w.Code != 200 {
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
if string(w.Body.Bytes()) != parseCodeError {
|
if w.Body.String() != parseCodeError {
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user