karma-runner/karma

karma || karma-chrome-launcher Does Not Respect 'captureTimeout'

Open

#2116 opened on May 5, 2016

View on GitHub
 (0 comments) (2 reactions) (0 assignees)JavaScript (11,918 stars) (1,703 forks)batch import
help wantedneeds: investigation

Description

Expected behavior

If Chrome is taking too long to launch, I am expecting that I can alter 'captureTimeout' to wait longer.

The default is suppose to be 60sec. but, karma retries ~500msecs.

Actual behavior

05 05 2016 19:03:13.421:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/ 05 05 2016 19:03:13.437:INFO [launcher]: Starting browser Chrome w/o security. 05 05 2016 19:03:14.042:ERROR [launcher]: Cannot start Chrome

Just not waiting long enough.

Enviroment Details

Windoze 7; slow box

  • Karma version (output of karma --version): 0,13.22

  • Relevant part of your karma.config.js file

    captureTimeout: 120000,
    retryLimit: 4,
    browsers: ['Chromeage'],
    customLaunchers: {
      Chromeage: {
        base: 'Chrome',
        flags: ['--disable-web-security'],
        displayName: 'Chrome w/o security.'
      }
    },
    
### Steps to reproduce the behaviour

1.
2.
3.

Contributor guide