From c1a9a2e980ca88a90dfbec30b5c6ae7f56ee5032 Mon Sep 17 00:00:00 2001 From: Val Hendrix Date: Tue, 7 Jan 2025 11:01:22 -0800 Subject: [PATCH] chore(test): adds --no-sandbox to testing to prevent gh hang This follows the suggestion as seen in the error message on the ghaction: Run npm test > metacatui@2.31.0 test > node test/server.js Failed to launch the browser process! [2359:2359:0107/175821.608019:FATAL:zygote_host_impl_linux.cc(126)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6758a42c1..61395df86 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "jsdoc": "jsdoc -c docs/jsdoc-templates/metacatui/conf.js", "jsdoc-dry-run": "jsdoc -c docs/jsdoc-templates/metacatui/conf.js -d /tmp", "doc": "cd docs; bundle exec jekyll serve", - "test": "node test/server.js", + "test": "node test/server.js --no-sandbox --disable-setuid-sandbox", "integration-test": "node test/server.js integration", "view-tests": "node test/server.js keep-running", "format": "prettier --write .",