From 1f86bb0eb4a09d0ca2f36d24a0c841a7c44bc414 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 9 Apr 2019 12:35:27 +0200 Subject: [PATCH] fix(core): update --- test/test.ts | 4 +++- ts/index.ts | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test.ts b/test/test.ts index 195fc15..8ea6d52 100644 --- a/test/test.ts +++ b/test/test.ts @@ -31,9 +31,11 @@ tap.test('should create a client', async tools => { }); tap.test('should terminate the smartipc process', async tools => { - await tools.delayFor(1000); await clientIpc.stop(); await serverIpc.stop(); + tools.delayFor(2000).then(() => { + process.exit(0); + }); }); tap.start(); diff --git a/ts/index.ts b/ts/index.ts index e1f8bdb..7dd14cb 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -70,9 +70,6 @@ export class SmartIpc { case 'client': break; } - plugins.smartdelay.delayFor(2000).then(() => { - process.exit(0); - }); } /**