test: extended timeout interval for OS operations

This commit is contained in:
Lam Wei Li 2022-07-25 00:27:29 +08:00
parent 09c4096c49
commit 0a936d1831
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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' },