From 5dfead3da02e1b6a90667e3f5555c7a06eedf67e Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Fri, 25 Oct 2019 20:50:19 +0900 Subject: [PATCH] fix --- test/chart.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/chart.ts b/test/chart.ts index 0b53763ff9..64fb22db87 100644 --- a/test/chart.ts +++ b/test/chart.ts @@ -49,13 +49,11 @@ describe('Chart', () => { clock = lolex.install({ now: new Date('2000-01-01 00:00:00') }); - - connection.synchronize().then(done); }); afterEach(done => { clock.uninstall(); - connection.dropDatabase().then(done); + connection.dropDatabase().then(() => connection.synchronize()).then(done); }); it('Can updates', async(async () => {