8000 test(pm2): one more go at making this test work all the time · wxqGitHub/log4js-node@f093279 · GitHub
[go: up one dir, main page]

Skip to content

Commit f093279

Browse files
author
Gareth Jones
committed
test(pm2): one more go at making this test work all the time
1 parent 551472c commit f093279

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/tap/pm2-support-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ if (cluster.isMaster) {
6262
batch.end();
6363
cluster.removeListener('message', messageHandler);
6464
});
65-
}, 100);
65+
}, 1000);
6666
}
6767
});
6868
} else {
@@ -87,7 +87,7 @@ if (cluster.isMaster) {
8787
const anotherLogger = log4js.getLogger('test');
8888
setTimeout(() => {
8989
anotherLogger.info('this should now get logged');
90-
}, 100);
90+
}, 1000);
9191

9292
// if we're the pm2-master we should wait for the other process to send its log messages
9393
setTimeout(() => {
@@ -96,10 +96,10 @@ if (cluster.isMaster) {
9696
debug(`Sending test events ${events} from ${process.env.NODE_APP_INSTANCE}`);
9797
process.send(
9898
{ type: 'testing', instance: process.env.NODE_APP_INSTANCE, events: events },
99-
() => { setTimeout(() => { cluster.worker.disconnect(); }, 100); }
99+
() => { setTimeout(() => { cluster.worker.disconnect(); }, 1000); }
100100
);
101101
});
102-
}, 300);
102+
}, 3000);
103103
});
104-
}, 200);
104+
}, 2000);
105105
}

0 commit comments

Comments
 (0)
0