mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
test: extended timeout interval for OS operations
This commit is contained in:
parent
09c4096c49
commit
0a936d1831
@ -151,7 +151,7 @@ test('log4js fileAppender', (batch) => {
|
||||
logger.info('This is an intermediate log message.');
|
||||
logger.info('This is the second log message.');
|
||||
// wait for the file system to catch up
|
||||
await sleep(100);
|
||||
await sleep(250);
|
||||
const fileContents = await fs.readFile(testFile, 'utf8');
|
||||
t.match(fileContents, 'This is the second log message.');
|
||||
t.equal(fileContents.indexOf('This is the first log message.'), -1);
|
||||
|
||||
@ -4,7 +4,7 @@ const childProcess = require('child_process');
|
||||
const sandbox = require('@log4js-node/sandboxed-module');
|
||||
const log4js = require('../../lib/log4js');
|
||||
|
||||
test('multiprocess appender shutdown (master)', { timeout: 5000 }, (t) => {
|
||||
test('multiprocess appender shutdown (master)', { timeout: 10000 }, (t) => {
|
||||
log4js.configure({
|
||||
appenders: {
|
||||
stdout: { type: 'stdout' },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user