ignore errors in teardown
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user