mirror of https://github.com/go-gorm/gorm.git
HasTable Test should clean up.
This commit is contained in:
parent
4ee47c9228
commit
52de7419f2
|
@ -133,6 +133,7 @@ func TestHasTable(t *testing.T) {
|
||||||
Id int
|
Id int
|
||||||
Stuff string
|
Stuff string
|
||||||
}
|
}
|
||||||
|
db.DropTable(&Foo{})
|
||||||
if table_ok := db.HasTable(&Foo{}); table_ok {
|
if table_ok := db.HasTable(&Foo{}); table_ok {
|
||||||
t.Errorf("Table should not exist, but does")
|
t.Errorf("Table should not exist, but does")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue