fix(core): update

This commit is contained in:
2022-05-17 21:26:17 +02:00
parent a739582861
commit 355a2a3f2b
10 changed files with 604 additions and 524 deletions

View File

@@ -205,12 +205,11 @@ tap.test('should use a cursor', async () => {
// close the database connection
// =======================================
tap.test('close', async () => {
await testDb.mongoDb.dropDatabase();
await testDb.close();
if (smartmongoInstance) {
await smartmongoInstance.stop();
} else {
await testDb.mongoDb.dropDatabase();
}
await testDb.close();
});
tap.start({ throwOnError: true });