Revert "benchmark: fix broken fs.cpSync benchmark"

This reverts commit 52430b9839.

PR-URL: https://github.com/nodejs/node/pull/58476
Fixes: https://github.com/nodejs/node/issues/58468
Reviewed-By: Dario Piotrowicz <dario.piotrowicz@gmail.com>
This commit is contained in:
Yuesong Jake Li 2025-05-28 09:27:34 +09:30 committed by Michaël Zasso
parent 0d761bbccd
commit 6c92329b1b
No known key found for this signature in database
GPG key ID: 770F7A9A5AE15600

View file

@ -8,10 +8,7 @@ const tmpdir = require('../../test/common/tmpdir');
const bench = common.createBenchmark(main, {
n: [1, 100, 10_000],
dereference: ['true', 'false'],
// When `force` is `true` the `cpSync` function is called twice the second
// time however an `ERR_FS_CP_EINVAL` is thrown, so skip `true` for the time being
// TODO: allow `force` to also be `true` once https://github.com/nodejs/node/issues/58468 is addressed
force: ['false'],
force: ['true', 'false'],
});
function prepareTestDirectory() {