diff --git a/test/utils/db-utils.js b/test/utils/db-utils.js index 5dc9b4c466..d01c6d3d5e 100644 --- a/test/utils/db-utils.js +++ b/test/utils/db-utils.js @@ -26,6 +26,7 @@ module.exports.reset = async () => { const dbExists = await fs.pathExists(filenameOrig); if (dbExists) { + await db.knex.destroy(); await fs.copyFile(filenameOrig, filename); } else { await knexMigrator.reset({force: true});