forked from mirror/gorm
Remove Debug mode from test code
This commit is contained in:
parent
835ca6ca93
commit
5acd5e20e6
|
@ -1293,12 +1293,11 @@ func TestWhereUpdates(t *testing.T) {
|
|||
OwnerEntity OwnerEntity `gorm:"polymorphic:Owner"`
|
||||
}
|
||||
|
||||
db := DB.Debug()
|
||||
db.DropTable(&SomeEntity{})
|
||||
db.AutoMigrate(&SomeEntity{})
|
||||
DB.DropTable(&SomeEntity{})
|
||||
DB.AutoMigrate(&SomeEntity{})
|
||||
|
||||
a := SomeEntity{Name: "test"}
|
||||
db.Model(&a).Where(a).Updates(SomeEntity{Name: "test2"})
|
||||
DB.Model(&a).Where(a).Updates(SomeEntity{Name: "test2"})
|
||||
}
|
||||
|
||||
func BenchmarkGorm(b *testing.B) {
|
||||
|
|
Loading…
Reference in New Issue