From 5a89ec9050cc86308bc0ee3ca975b685d3544073 Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Fri, 25 Oct 2019 22:15:18 +0900 Subject: [PATCH] fix --- test/chart.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/chart.ts b/test/chart.ts index 52144d6b19..63108ba6e9 100644 --- a/test/chart.ts +++ b/test/chart.ts @@ -48,10 +48,11 @@ describe('Chart', () => { done(); }); - afterEach(done => { + afterEach(async(async () => { clock.uninstall(); - connection.dropDatabase().then(() => connection.synchronize()).then(done); - }); + await connection.dropDatabase(); + await connection.synchronize(); + })); it('Can updates', async(async () => { await testChart.increment();