karma-browserstack-launcher icon indicating copy to clipboard operation
karma-browserstack-launcher copied to clipboard

Config option retryLimit cannot be set to 0

Open Xunem opened this issue 4 years ago • 2 comments

We are experiencing an issue with the karma-browserstack-launcher when using the retryLimit config option. We want to set the value to 0 which does not seem to work properly. Looking into the code I think this is due to the way the retryLimit is set within the launcher:

var retryLimit = bsConfig.retryLimit || 3

Xunem avatar Sep 10 '20 09:09 Xunem

Hey @Xunem

Thanks for catching that. We have raised a PR to fix the same:

PR: https://github.com/karma-runner/karma-browserstack-launcher/pull/180

shawnlobo96 avatar Sep 10 '20 13:09 shawnlobo96

A workaround is to pass retryLimit: '0' instead of 0 to cheat the || operator.

SevenOutman avatar May 30 '21 01:05 SevenOutman