Skip to content

Commit

Permalink
Reduced setTimeout(1000) -> setTimeout(250) for waiting for file syst…
Browse files Browse the repository at this point in the history
…em to catch up
  • Loading branch information
lamweili committed Jan 17, 2022
1 parent c12ac23 commit 098759e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tap/file-descriptor-leak-test.js
Expand Up @@ -40,7 +40,7 @@ if (process.platform !== "win32") {
t.equal(loadedFd, initialFd + numOfAppenders,
`file descriptor count should increase by ${numOfAppenders} after 1st configure() call`);
t.end();
}, 1000);
}, 250);
});

batch.test("repeated log4js configure to not increase file descriptor count", t => {
Expand All @@ -53,7 +53,7 @@ if (process.platform !== "win32") {
t.equal(fs.readdirSync('/proc/self/fd').length, loadedFd,
`file descriptor count should be identical after repeated configure() calls`);
t.end();
}, 1000);
}, 250);
});

batch.test("file descriptor count should return back to initial count", t => {
Expand All @@ -64,7 +64,7 @@ if (process.platform !== "win32") {
t.equal(fs.readdirSync('/proc/self/fd').length, initialFd,
`file descriptor count should be back to initial`);
t.end();
}, 1000);
}, 250);
});

batch.teardown(async () => {
Expand Down

0 comments on commit 098759e

Please sign in to comment.