Commit 64b475d7 authored by astaxie's avatar astaxie

fix ReadOrCreate test case

parent aa8f7bc1
...@@ -2138,9 +2138,8 @@ func TestUintPk(t *testing.T) { ...@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment