From f09327962e2983c362c05fb7e56b6a2df4defb86 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sat, 18 Nov 2017 11:15:58 +1100 Subject: [PATCH] test(pm2): one more go at making this test work all the time --- test/tap/pm2-support-test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/tap/pm2-support-test.js b/test/tap/pm2-support-test.js index 3100338..7af091d 100644 --- a/test/tap/pm2-support-test.js +++ b/test/tap/pm2-support-test.js @@ -62,7 +62,7 @@ if (cluster.isMaster) { batch.end(); cluster.removeListener('message', messageHandler); }); - }, 100); + }, 1000); } }); } else { @@ -87,7 +87,7 @@ if (cluster.isMaster) { const anotherLogger = log4js.getLogger('test'); setTimeout(() => { anotherLogger.info('this should now get logged'); - }, 100); + }, 1000); // if we're the pm2-master we should wait for the other process to send its log messages setTimeout(() => { @@ -96,10 +96,10 @@ if (cluster.isMaster) { debug(`Sending test events ${events} from ${process.env.NODE_APP_INSTANCE}`); process.send( { type: 'testing', instance: process.env.NODE_APP_INSTANCE, events: events }, - () => { setTimeout(() => { cluster.worker.disconnect(); }, 100); } + () => { setTimeout(() => { cluster.worker.disconnect(); }, 1000); } ); }); - }, 300); + }, 3000); }); - }, 200); + }, 2000); }