Skip to content

Commit

Permalink
fix test TestCreateWithInterfaceArrayTypeWithTable
Browse files Browse the repository at this point in the history
  • Loading branch information
KEHyeon committed Feb 15, 2025
1 parent 0dbcd1c commit 0d18339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d18339

Please sign in to comment.