test(pm2): increasing timeout to see if it makes build less flaky

This commit is contained in:
Gareth Jones 2017-07-23 15:33:34 +10:00
parent 4de0dd6834
commit 9771814a99

View File

@ -76,12 +76,12 @@ if (cluster.isMaster) {
});
const anotherLogger = log4js.getLogger('test');
anotherLogger.info('this should now get logged');
}, 500);
}, 1000);
// we have to wait a bit, so that the process.send messages get a chance to propagate
setTimeout(() => {
const events = recorder.replay();
process.send({ type: 'testing', instance: process.env.NODE_APP_INSTANCE, events: events });
cluster.worker.disconnect();
}, 1000);
}, 2000);
}