-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pendingHeartBeat timeout not cleared properly #42
Comments
Narrowed down the problem: the heart-beat timeout isn't cleared when a browser fails to start and is killed + restarted by Karma. I'm not sure what is the exact sequence of events that make the problem appear, though.... But definitively it happens only when a browser fails to capture and is restarted by Karma. When a browser captures correctly the timeout is cleared properly. |
OK, so here is the situation when a timeout might not get cleared properly:
I can see 2 approaches to fixing the problem: either check before starting the heartbeat procedure that a browser is not being killed or clear the heartbeat timeout later, just before calling done. IMO the first approach sounds "better". |
@pkozlowski-opensource thanks for investigating this, I haven't looked at the heartbeat code much but approach 1 does sound preferable. |
this is still an active issue, can you fix it soon? It's killing my test suite on travisci. |
FYI: I no longer use or maintain this plugin |
This branch fixed the heartbeat problem: Could someone review and merge it, please? |
Closing this due to inactivity, feel free to re-open if this is still an issue. Heartbeat has been re-implemented in https://github.com/karma-runner/karma-sauce-launcher/releases/tag/v4.2.0 |
In ceratin circumstences the timeout here:
karma-sauce-launcher/lib/sauce_launcher.js
Line 56 in f1d2cb4
This error is logged since a heartbeat is scheduled even if a given browser finished its run.
The text was updated successfully, but these errors were encountered: