Skip to content

Commit 45a6922

Browse files
fix(launchers): Listen to the correct error event.
Thanks @badcorporatelogo for pointing this out.
1 parent 13b2b72 commit 45a6922

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/launchers/process.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var ProcessLauncher = function (spawn, tempDir, timer) {
6868
self._onProcessExit(code, errorOutput)
6969
})
7070

71-
self._process.on('karma_error', function (err) {
71+
self._process.on('error', function (err) {
7272
if (err.code === 'ENOENT') {
7373
self._retryLimit = -1
7474
errorOutput = 'Can not find the binary ' + cmd + '\n\t' +

test/unit/launchers/process.spec.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe 'launchers/process.js', ->
7070
emitter.on 'browser_process_failure', failureSpy
7171

7272
launcher.start 'http://host:9876/'
73-
mockSpawn._processes[0].emit 'karma_error', {code: 'ENOENT'}
73+
mockSpawn._processes[0].emit 'error', {code: 'ENOENT'}
7474
mockSpawn._processes[0].emit 'exit', 1
7575
mockTempDir.remove.callArg 1
7676

0 commit comments

Comments
 (0)