Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is browserNoActivityTimeout used in karma?

I grep the karma repository and it seems like no logic is using that field besides simply being set in the config.

Does anyone know what is that field for?

For some reason I have to set it to 20000 or else my karma test Disconnects

like image 265
Jal Avatar asked Jan 02 '26 02:01

Jal


1 Answers

It's referenced as noActivityTimeout internally, in this file: https://github.com/karma-runner/karma/blob/de55bc63205c656eb5f5534894aa4ae92228efb8/lib/browser.js

Basically, the effect of the line is supposed to be that the test stops running if no activity is detected in the amount of time specified by the config. This helps the tests stop when your code is in an infinite loop or otherwise not responding (maybe it has an async test condition and the test never resolves)

like image 185
AnilRedshift Avatar answered Jan 03 '26 17:01

AnilRedshift



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!