fix ReadOrCreate test case

This commit is contained in:
astaxie 2017-04-28 22:58:17 +08:00
parent aa8f7bc146
commit 64b475d7d6
1 changed files with 1 additions and 2 deletions

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))