diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js index da64505e242b2c..5b3efe1de6ec81 100644 --- a/test/parallel/test-fs-readfile-error.js +++ b/test/parallel/test-fs-readfile-error.js @@ -27,7 +27,7 @@ const path = require('path'); // `fs.readFile('/')` does not fail on FreeBSD, because you can open and read // the directory there. -if (process.platform === 'freebsd') { +if (common.isFreeBSD) { common.skip('platform not supported.'); return; }