Skip to content

Commit a998008

Browse files
committed
chore: added no-sandbox arg to fix browser test
1 parent 1ebf4d8 commit a998008

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

test/fetch-api/browser/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
. test/setup/server.sh
44

5-
npx mocha-headless-chrome -f http://127.0.0.1:8000/$(dirname $0)/index.html?globals=on
5+
npx mocha-headless-chrome -f http://127.0.0.1:8000/$(dirname $0)/index.html?globals=on -a no-sandbox -a disable-setuid-sandbox

test/fetch-api/service-worker/run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
. test/setup/server.sh
44

55
npx webpack --config $(dirname "$0")/webpack.config.js &&
6-
npx mocha-headless-chrome -f http://127.0.0.1:8000/$(dirname $0)/index.html
6+
npx mocha-headless-chrome -f http://127.0.0.1:8000/$(dirname $0)/index.html -a no-sandbox -a disable-setuid-sandbox
7+

test/fetch-api/whatwg/run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
. test/setup/server.sh
44

5-
npx mocha-headless-chrome -f http://127.0.0.1:8000/$(dirname $0)/index.html?globals=off
5+
npx mocha-headless-chrome -f http://127.0.0.1:8000/$(dirname $0)/index.html?globals=off -a no-sandbox -a disable-setuid-sandbox
6+

test/module-system/web.cjs/run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
npx webpack --config $(dirname "$0")/webpack.config.js &&
3-
npx mocha-headless-chrome -f $(dirname "$0")/polyfill.html?globals=off &&
4-
npx mocha-headless-chrome -f $(dirname "$0")/polyfill.html?globals=on &&
5-
npx mocha-headless-chrome -f $(dirname "$0")/ponyfill.html?globals=off &&
6-
npx mocha-headless-chrome -f $(dirname "$0")/ponyfill.html?globals=on
3+
npx mocha-headless-chrome -f $(dirname "$0")/polyfill.html?globals=off -a no-sandbox -a disable-setuid-sandbox &&
4+
npx mocha-headless-chrome -f $(dirname "$0")/polyfill.html?globals=on -a no-sandbox -a disable-setuid-sandbox &&
5+
npx mocha-headless-chrome -f $(dirname "$0")/ponyfill.html?globals=off -a no-sandbox -a disable-setuid-sandbox &&
6+
npx mocha-headless-chrome -f $(dirname "$0")/ponyfill.html?globals=on -a no-sandbox -a disable-setuid-sandbox

test/module-system/web.esm/run.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/sh
22
npx webpack --config $(dirname "$0")/webpack.config.js &&
3-
npx mocha-headless-chrome -f $(dirname "$0")/polyfill.html?globals=off &&
4-
npx mocha-headless-chrome -f $(dirname "$0")/polyfill.html?globals=on &&
5-
npx mocha-headless-chrome -f $(dirname "$0")/ponyfill.html?globals=off &&
6-
npx mocha-headless-chrome -f $(dirname "$0")/ponyfill.html?globals=on
3+
npx mocha-headless-chrome -f $(dirname "$0")/polyfill.html?globals=off -a no-sandbox -a disable-setuid-sandbox
4+
&&
5+
npx mocha-headless-chrome -f $(dirname "$0")/polyfill.html?globals=on -a no-sandbox -a disable-setuid-sandbox
6+
&&
7+
npx mocha-headless-chrome -f $(dirname "$0")/ponyfill.html?globals=off -a no-sandbox -a disable-setuid-sandbox
8+
&&
9+
npx mocha-headless-chrome -f $(dirname "$0")/ponyfill.html?globals=on -a no-sandbox -a disable-setuid-sandbox
10+

0 commit comments

Comments
 (0)