From cd35d00518f5fa5088438c2dad8983dc7dc8359c Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 12 Jul 2020 23:07:57 -0400 Subject: [PATCH] test: force resigning of app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the GitHub Actions CI, test-macos-app-sandbox.js can fail due to the application already being signed. This commit updates the test to handle that condition. Refs: https://github.com/nodejs/node/pull/33944 PR-URL: https://github.com/nodejs/node/pull/34331 Reviewed-By: Rich Trott Reviewed-By: Anto Aravinth Reviewed-By: Tobias Nießen --- test/parallel/test-macos-app-sandbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-macos-app-sandbox.js b/test/parallel/test-macos-app-sandbox.js index f7fcf5e5728815..53484834a36758 100644 --- a/test/parallel/test-macos-app-sandbox.js +++ b/test/parallel/test-macos-app-sandbox.js @@ -42,7 +42,7 @@ assert.strictEqual( child_process.spawnSync('/usr/bin/codesign', [ '--entitlements', fixtures.path( 'macos-app-sandbox', 'node_sandboxed.entitlements'), - '-s', '-', + '--force', '-s', '-', appBundlePath ]).status, 0);