mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 22:50:55 +00:00
fix ReadOrCreate test case
This commit is contained in:
parent
aa8f7bc146
commit
64b475d7d6
@ -2138,9 +2138,8 @@ func TestUintPk(t *testing.T) {
|
|||||||
Name: name,
|
Name: name,
|
||||||
}
|
}
|
||||||
|
|
||||||
created, pk, err := dORM.ReadOrCreate(u, "ID")
|
created, _, err := dORM.ReadOrCreate(u, "ID")
|
||||||
throwFail(t, err)
|
throwFail(t, err)
|
||||||
throwFail(t, AssertIs(pk, u.ID))
|
|
||||||
throwFail(t, AssertIs(created, true))
|
throwFail(t, AssertIs(created, true))
|
||||||
throwFail(t, AssertIs(u.Name, name))
|
throwFail(t, AssertIs(u.Name, name))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user