ignore errors in teardown
This commit is contained in:
parent
1828334c4a
commit
7133e5d7f5
|
@ -1451,9 +1451,9 @@ func (db *TestDB) tearDown() {
|
||||||
for _, tbl := range testTables {
|
for _, tbl := range testTables {
|
||||||
switch db.dialect {
|
switch db.dialect {
|
||||||
case SQLITE:
|
case SQLITE:
|
||||||
db.mustExec("drop table if exists " + tbl)
|
db.Exec("drop table if exists " + tbl)
|
||||||
case MYSQL, POSTGRESQL:
|
case MYSQL, POSTGRESQL:
|
||||||
db.mustExec("drop table if exists " + tbl)
|
db.Exec("drop table if exists " + tbl)
|
||||||
default:
|
default:
|
||||||
db.Fatal("unknown dialect")
|
db.Fatal("unknown dialect")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue