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); - }); } /**