Skip to content

Commit

Permalink
Remove Debug mode from test code
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Jun 13, 2019
1 parent 835ca6c commit 5acd5e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5acd5e2

Please sign in to comment.