Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
benchmark: fix broken fs.cpSync benchmark
  • Loading branch information
dario-piotrowicz committed May 26, 2025
commit ca19f7325252af6e9cbffb76b7f03f9c19d1bd26
5 changes: 4 additions & 1 deletion benchmark/fs/bench-cpSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const tmpdir = require('../../test/common/tmpdir');
const bench = common.createBenchmark(main, {
n: [1, 100, 10_000],
dereference: ['true', 'false'],
force: ['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'],
});

function prepareTestDirectory() {
Expand Down
Loading