1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-26 10:10:50 +00:00

fix the beego ORM test

This commit is contained in:
astaxie 2017-04-30 22:55:39 +08:00
parent a91e2e9950
commit 79b66ef053

View File

@ -2144,7 +2144,7 @@ func TestUintPk(t *testing.T) {
throwFail(t, AssertIs(u.Name, name))
nu := &UintPk{ID: 8}
created, pk, err = dORM.ReadOrCreate(nu, "ID")
created, pk, err := dORM.ReadOrCreate(nu, "ID")
throwFail(t, err)
throwFail(t, AssertIs(created, false))
throwFail(t, AssertIs(nu.ID, u.ID))