Skip to content

Commit 0d18339

Browse files
committed
fix test TestCreateWithInterfaceArrayTypeWithTable
1 parent 0dbcd1c commit 0d18339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/create_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ func TestCreateWithInterfaceType(t *testing.T) {
826826
func TestCreateWithInterfaceArrayTypeWithTable(t *testing.T) {
827827
user := *GetUser("create", Config{})
828828
type UserInterface interface{}
829-
var userInterface UserInterface = &user
829+
var userInterface UserInterface = user
830830

831831
if results := DB.Table("users").Create([]UserInterface{userInterface}); results.Error != nil {
832832
t.Fatalf("errors happened when create: %v", results.Error)

0 commit comments

Comments
 (0)