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"`
|
OwnerEntity OwnerEntity `gorm:"polymorphic:Owner"`
|
||||||
}
|
}
|
||||||
|
|
||||||
db := DB.Debug()
|
DB.DropTable(&SomeEntity{})
|
||||||
db.DropTable(&SomeEntity{})
|
DB.AutoMigrate(&SomeEntity{})
|
||||||
db.AutoMigrate(&SomeEntity{})
|
|
||||||
|
|
||||||
a := SomeEntity{Name: "test"}
|
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) {
|
func BenchmarkGorm(b *testing.B) {
|
||||||
|
|
Loading…
Reference in New Issue