10000 test(pm2): really making it more reliable this time · wxqGitHub/log4js-node@a690ba0 · GitHub
[go: up one dir, main page]

Skip to content

Commit a690ba0

Browse files
author
Gareth Jones
committed
test(pm2): really making it more reliable this time
1 parent 8627f74 commit a690ba0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/tap/pm2-support-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ if (cluster.isMaster) {
8585
setTimeout(() => {
8686
log4js.shutdown(() => {
8787
const events = recorder.replay();
88-
process.nextTick(() => {
89-
process.send({ type: 'testing', instance: process.env.NODE_APP_INSTANCE, events: events });
90-
cluster.worker.disconnect();
91-
});
88+
process.send(
89+
{ type: 'testing', instance: process.env.NODE_APP_INSTANCE, events: events },
90+
() => { cluster.worker.disconnect(); }
91+
);
9292
});
9393
}, 1000);
9494
});

0 commit comments

Comments
 (0)
0