ignore errors in teardown

This commit is contained in:
Yasuhiro Matsumoto 2017-08-02 01:49:00 +09:00
parent 1828334c4a
commit 7133e5d7f5
1 changed files with 2 additions and 2 deletions

View File

@ -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")
} }