Add missed await

This commit is contained in:
Dmitry S 2024-04-01 16:00:50 -04:00
parent 01b9d30c45
commit 6a5177b319

View File

@ -68,7 +68,7 @@ export class TestServerMerged extends EventEmitter implements IMochaServer {
const workerIdText = process.env.MOCHA_WORKER_ID || '0';
if (reset) {
// Make sure this test server doesn't keep using the DB that's about to disappear.
this.closeDatabase();
await this.closeDatabase();
if (process.env.TESTDIR) {
this.testDir = path.join(process.env.TESTDIR, workerIdText);