Skip to content

Commit ce24d52

Browse files
vsemozhetbytjungx098
authored andcommitted
benchmark: fix fs\bench-realpathSync.js
Make it call-site-cwd-independent. PR-URL: nodejs#11904 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 4bff6b8 commit ce24d52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: benchmark/fs/bench-realpathSync.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
const common = require('../common');
44
const fs = require('fs');
55
const path = require('path');
6+
7+
process.chdir(__dirname);
68
const resolved_path = path.resolve(__dirname, '../../lib/');
79
const relative_path = path.relative(__dirname, '../../lib/');
810

0 commit comments

Comments
 (0)