mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
test(pm2): increasing timeout to see if it makes build less flaky
This commit is contained in:
parent
4de0dd6834
commit
9771814a99
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user