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 2025-07-26 00:44:26 -07:00 committed by GitHub
parent ad81548bf5
commit 5e86ad9c6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,6 +86,7 @@ const { once } = require('events');
});
assert.deepStrictEqual(await readPromise, await fs.readFile(__filename));
await fh.close();
})().then(common.mustCall());
(async function() {