Skip to content

Commit eabaea3

Browse files
Add Negative tests for insert query
1 parent 1e0d7ed commit eabaea3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/main_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ func TestUserInsertScenarios(t *testing.T) {
100100
Age int `gorm:"column:AGE"`
101101
}
102102

103-
if err := DB.Migrator().DropTable(&UserWithAge{}); err != nil {
104-
t.Fatalf("Failed to drop table: %v", err)
105-
}
106-
107103
if err := DB.AutoMigrate(&UserWithAge{}); err != nil {
108104
t.Fatalf("Failed to migrate table: %v", err)
109105
}

0 commit comments

Comments
 (0)