title: Karma: "Disconnectedreconnect failed before timeout of" with ChromeHeadless
body: <p>In my AngularJS, npm times out when running tests, with message "Disconnectedreconnect failed before timeout of Xs" .
  My karma.conf.js file is configured as such:</p>
  
  <pre><code>...
  browserDisconnectTimeout: 10000,
  browserDisconnectTolerance: 3,
  browserNoActivityTimeout: 100000,
  ...
  </code></pre>
  
  <p>Increasing these values didn't help - the same error would appear after the newly specified amount of time.</p>