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

fix ReadOrCreate test case

This commit is contained in:
astaxie 2017-04-28 22:58:17 +08:00
parent aa8f7bc146
commit 64b475d7d6

View File

@ -2138,9 +2138,8 @@ func TestUintPk(t *testing.T) {
Name: name,
}
created, pk, err := dORM.ReadOrCreate(u, "ID")
created, _, err := dORM.ReadOrCreate(u, "ID")
throwFail(t, err)
throwFail(t, AssertIs(pk, u.ID))
throwFail(t, AssertIs(created, true))
throwFail(t, AssertIs(u.Name, name))