Skip to content

Commit

Permalink
test: extended timeout interval for OS operations
Browse files Browse the repository at this point in the history
  • Loading branch information
lamweili committed Jul 24, 2022
1 parent 09c4096 commit 0a936d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/tap/fileAppender-test.js
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/tap/multiprocess-shutdown-test.js
Expand Up @@ -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' },
Expand Down

0 comments on commit 0a936d1

Please sign in to comment.