fix test TestCreateWithInterfaceArrayTypeWithTable

This commit is contained in:
KEHyeon 2025-02-15 17:02:05 +09:00
parent 0dbcd1cd36
commit 0d183399c9

View File

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