From 098759ee4e0c93f8385cf208333eaa54bee24c24 Mon Sep 17 00:00:00 2001 From: peteriman Date: Tue, 18 Jan 2022 01:01:26 +0800 Subject: [PATCH] Reduced setTimeout(1000) -> setTimeout(250) for waiting for file system to catch up --- test/tap/file-descriptor-leak-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/tap/file-descriptor-leak-test.js b/test/tap/file-descriptor-leak-test.js index 8d475b67..7436a8e7 100644 --- a/test/tap/file-descriptor-leak-test.js +++ b/test/tap/file-descriptor-leak-test.js @@ -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 => { @@ -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 => { @@ -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 () => {