diff --git a/test/parallel/test-snapshot-child-process-sync.js b/test/parallel/test-snapshot-child-process-sync.js index 0a273c0c719c7f..ac11ceae54d402 100644 --- a/test/parallel/test-snapshot-child-process-sync.js +++ b/test/parallel/test-snapshot-child-process-sync.js @@ -3,8 +3,8 @@ // This tests that process.cwd() is accurate when // restoring state from a snapshot -require('../common'); -const { isInsideDirWithUnusualChars, spawnSyncAndAssert } = require('../common/child_process'); +const { isInsideDirWithUnusualChars } = require('../common'); +const { spawnSyncAndAssert } = require('../common/child_process'); const tmpdir = require('../common/tmpdir'); const fixtures = require('../common/fixtures'); const assert = require('assert'); @@ -14,7 +14,7 @@ const blobPath = tmpdir.resolve('snapshot.blob'); const file = fixtures.path('snapshot', 'child-process-sync.js'); const expected = [ 'From child process spawnSync', - 'From child process execSync', + ...(isInsideDirWithUnusualChars ? [] : ['From child process execSync']), 'From child process execFileSync', ];