From 991d6163d91ddafcdd8493a9c8db61b5c3a1152d Mon Sep 17 00:00:00 2001 From: Deviller Date: Thu, 19 Nov 2020 12:58:25 +0300 Subject: [PATCH] Fallback to gorm.Model at TestAssociationNotNullClear() --- tests/associations_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/associations_test.go b/tests/associations_test.go index cb76b7bd..f470338f 100644 --- a/tests/associations_test.go +++ b/tests/associations_test.go @@ -3,6 +3,7 @@ package tests_test import ( "testing" + "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) @@ -34,13 +35,13 @@ func TestInvalidAssociation(t *testing.T) { func TestAssociationNotNullClear(t *testing.T) { type Profile struct { - ID uint + gorm.Model Number string MemberID uint `gorm:"not null"` } type Member struct { - ID uint + gorm.Model Profiles []Profile }