From 64b475d7d640117219d6246ea154282bf3c0c34f Mon Sep 17 00:00:00 2001 From: astaxie Date: Fri, 28 Apr 2017 22:58:17 +0800 Subject: [PATCH] fix ReadOrCreate test case --- orm/orm_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/orm/orm_test.go b/orm/orm_test.go index fdc6473c..71b614f3 100644 --- a/orm/orm_test.go +++ b/orm/orm_test.go @@ -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))