mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
chore: redis tests fail due to deprecation message
This commit is contained in:
parent
80dce78ea8
commit
b177d6972d
@ -126,11 +126,11 @@ test('multiprocess appender crash (worker)', (t) => {
|
||||
|
||||
worker.on('message', (m) => {
|
||||
if (m === 'worker is done') {
|
||||
worker.kill();
|
||||
setTimeout(() => {
|
||||
worker.kill();
|
||||
t.equal(messages[0], 'Logging from worker');
|
||||
log4jsWithFakeConsole.shutdown(() => t.end());
|
||||
}, 500);
|
||||
}, 100);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@ -124,13 +124,13 @@ test('log4js redisAppender', (batch) => {
|
||||
setup.fakeRedis.publishCb('oh no, error on publish');
|
||||
|
||||
t.test('should go to the console', (assert) => {
|
||||
assert.equal(setup.fakeConsole.errors.length, 2);
|
||||
assert.equal(setup.fakeConsole.errors.length, 3);
|
||||
assert.equal(
|
||||
setup.fakeConsole.errors[0],
|
||||
setup.fakeConsole.errors[1],
|
||||
'log4js.redisAppender - 127.0.0.1:6379 Error: \'oh no, error on connect\''
|
||||
);
|
||||
assert.equal(
|
||||
setup.fakeConsole.errors[1],
|
||||
setup.fakeConsole.errors[2],
|
||||
'log4js.redisAppender - 127.0.0.1:6379 Error: \'oh no, error on publish\''
|
||||
);
|
||||
assert.end();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user