From f8d0d5ad1f9ecca215404aef17a6236ea10a3aa0 Mon Sep 17 00:00:00 2001 From: Christophe Diederichs Date: Thu, 13 Jun 2024 17:45:02 +0100 Subject: [PATCH] close base and store concurrently --- test/helpers/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/helpers/index.js b/test/helpers/index.js index c4d85736..af5060cd 100644 --- a/test/helpers/index.js +++ b/test/helpers/index.js @@ -79,8 +79,10 @@ function createBase (store, key, t, opts = {}) { } t.teardown(async () => { - await base.close().catch(() => {}) - await base._viewStore.close().catch(() => {}) + return Promise.all([ + base.close().catch(() => {}), + base._viewStore.close().catch(() => {}) + ]) }, { order: 1 }) return base