test: fix flaky test-worker-message-port-transfer-filehandle test

PR-URL: https://github.com/nodejs/node/pull/59158
Fixes: https://github.com/nodejs/node/issues/59145
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Alex Yang authored and Antoine du Hamel committed 2025-08-04 13:35:56 +02:00
1 parent b549deac02
commit 3a9aca91c6
1 file changed
+1
@@ -86,6 +86,7 @@ const { once } = require('events');
});
assert.deepStrictEqual(await readPromise, await fs.readFile(__filename));
await fh.close();
})().then(common.mustCall());
(async function() {