Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: extended timeout interval for OS operations #1297

Merged
merged 1 commit into from Jul 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/tap/fileAppender-test.js
Expand Up @@ -40,7 +40,7 @@ test('log4js fileAppender', (batch) => {

logger.info('This should be in the file.');

await sleep(100);
await sleep(250);
const fileContents = await fs.readFile(testFile, 'utf8');
t.match(fileContents, `This should be in the file.${EOL}`);
t.match(
Expand Down Expand Up @@ -219,7 +219,7 @@ test('log4js fileAppender', (batch) => {
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.notMatch(fileContents, 'These are the log messages for the first file.');
Expand Down Expand Up @@ -272,7 +272,7 @@ test('log4js fileAppender', (batch) => {
logger.info('This is the third log message.');
logger.info('This is the fourth log message.');
// give the system a chance to open the stream
await sleep(200);
await sleep(250);
const files = await fs.readdir(__dirname);
const logFiles = files
.sort()
Expand Down Expand Up @@ -334,7 +334,7 @@ test('log4js fileAppender', (batch) => {
logger.info('This is the third log message.');
logger.info('This is the fourth log message.');
// give the system a chance to open the stream
await sleep(1000);
await sleep(250);
const files = await fs.readdir(__dirname);
const logFiles = files
.sort()
Expand Down Expand Up @@ -503,7 +503,7 @@ test('log4js fileAppender', (batch) => {
[]
);

await sleep(100);
await sleep(250);
let fileContents = await fs.readFile(testFilePlain, 'utf8');
t.match(
fileContents,
Expand Down