karma-runner / karma-sauce-launcher

A Karma plugin. Launch any browser on SauceLabs!
MIT License
199 stars 103 forks source link

Error when mixing browser launched on SauceLabs and others #232

Closed mjeanroy closed 3 years ago

mjeanroy commented 3 years ago

Hi,

When I try to run my test suite with browsers launched through saucelabs launcher and another one (say ChromeHeadless available locally), the test suite fails with the following stacktrace:

[19:23:33] TypeError: Cannot read property 'results' of undefined
    at SaucelabsReporter.onSpecComplete (/home/runner/work/jasmine-dom-spec/jasmine-dom-spec/node_modules/karma-sauce-launcher/dist/reporter/reporter.js:29:35)
    at Server.<anonymous> (/home/runner/work/jasmine-dom-spec/jasmine-dom-spec/node_modules/karma/lib/events.js:40:26)
    at Server.emit (events.js:327:22)
    at Server.EventEmitter.emit (domain.js:548:15)
    at Browser.onResult (/home/runner/work/jasmine-dom-spec/jasmine-dom-spec/node_modules/karma/lib/browser.js:159:20)
    at Socket.<anonymous> (/home/runner/work/jasmine-dom-spec/jasmine-dom-spec/node_modules/karma/lib/browser.js:209:42)
    at Socket.emit (events.js:315:20)
    at Socket.EventEmitter.emit (domain.js:486:12)
    at /home/runner/work/jasmine-dom-spec/jasmine-dom-spec/node_modules/socket.io/lib/socket.js:528:12
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

You can see it here.

I'm using karma-sauce-launcher@4.3.3 and karma@5.2.3

karmarunnerbot commented 3 years ago

:tada: This issue has been resolved in version 4.3.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: