remove drop table error check

This commit is contained in:
Mayank Govilla 2021-11-05 01:10:34 -04:00
parent a56aa16473
commit 45582f6ed8

View File

@ -62,9 +62,7 @@ func TestAutoMigrateSelfReferential(t *testing.T) {
Manager *MigratePerson
}
if err := DB.Debug().Migrator().DropTable(&MigratePerson{}); err != nil {
t.Fatalf("Failed to drop table, got error %v", err)
}
DB.Migrator().DropTable(&MigratePerson{})
if err := DB.AutoMigrate(&MigratePerson{}); err != nil {
t.Fatalf("Failed to auto migrate, but got error %v", err)