From 0d183399c9936534304c1ae11f4c91e097af928e Mon Sep 17 00:00:00 2001 From: KEHyeon Date: Sat, 15 Feb 2025 17:02:05 +0900 Subject: [PATCH] fix test TestCreateWithInterfaceArrayTypeWithTable --- tests/create_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/create_test.go b/tests/create_test.go index 0521f05ef..7bd689b1b 100644 --- a/tests/create_test.go +++ b/tests/create_test.go @@ -826,7 +826,7 @@ func TestCreateWithInterfaceType(t *testing.T) { func TestCreateWithInterfaceArrayTypeWithTable(t *testing.T) { user := *GetUser("create", Config{}) type UserInterface interface{} - var userInterface UserInterface = &user + var userInterface UserInterface = user if results := DB.Table("users").Create([]UserInterface{userInterface}); results.Error != nil { t.Fatalf("errors happened when create: %v", results.Error)