Skip to content

Commit

Permalink
test: skip parallel/test-macos-app-sandbox if disk space < 120MB
Browse files Browse the repository at this point in the history
It needs to copy the Node.js binary which is currently almost
100MB. To be safe, skip the test when the available disk space
is smaller than 120MB.

PR-URL: #50764
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
joyeecheung authored and UlisesGascon committed Dec 19, 2023
1 parent 019efa8 commit 660e70e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/parallel/test-macos-app-sandbox.js
Expand Up @@ -17,6 +17,10 @@ const nodeBinary = process.execPath;

tmpdir.refresh();

if (!tmpdir.hasEnoughSpace(120 * 1024 * 1024)) {
common.skip('Available disk space < 120MB');
}

const appBundlePath = tmpdir.resolve('node_sandboxed.app');
const appBundleContentPath = path.join(appBundlePath, 'Contents');
const appExecutablePath = path.join(
Expand Down

0 comments on commit 660e70e

Please sign in to comment.