-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web-server): Restart disconnected browser in non-singleRun mode.
Allow browserDisconnectTolerance config option to be set in non-singleRun mode. In some cases, the browser would get stuck in an infinite loop (e.g. because of a faulty code/test). This blocks browser’s event loop, preventing it from reporting back to Karma. Karma then considers the browser ‘DISCONNECTED’. Prior to this commit, the `browserDisconnectTolerance` option will only apply in singleRun mode. In above scenario, the end-user must restart Karma to continue running tests inside Karma-managed browsers. This commit fixes this problem by always honoring the aforementioned option.
- Loading branch information
Showing
2 changed files
with
25 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters