Skip to content

Commit bebb6c6

Browse files
Fix ChromeHeadless timeout on macOS by adding --no-sandbox flags
Co-authored-by: francinelucca <40550942+francinelucca@users.noreply.github.com>
1 parent ebeb061 commit bebb6c6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

karma.config.cjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ module.exports = function(config) {
1111
port: 9876,
1212
colors: true,
1313
logLevel: config.LOG_INFO,
14-
browsers: ['ChromeHeadless'],
14+
customLaunchers: {
15+
ChromeHeadlessNoSandbox: {
16+
base: 'ChromeHeadless',
17+
flags: ['--no-sandbox', '--disable-setuid-sandbox'],
18+
},
19+
},
20+
browsers: ['ChromeHeadlessNoSandbox'],
1521
autoWatch: false,
1622
singleRun: true,
1723
concurrency: Infinity

0 commit comments

Comments
 (0)