kmiyashiro / grunt-mocha

[MOVED] Grunt task for running mocha specs in a headless browser (PhantomJS)
MIT License
370 stars 106 forks source link

Timeout stays at 2000ms? #121

Closed stevenvachon closed 10 years ago

stevenvachon commented 10 years ago

The readme states that the default is 5000ms, but it doesn't appear to be so. Also, when I tried changing it to 100000000000000ms, it remained at 2000ms.

kmiyashiro commented 10 years ago

The timeout is for phantomjs, mocha defaults to 2s. You can set the timeouts in mocha using this.timeout() http://visionmedia.github.io/mocha/#suite-specific-timeouts

stevenvachon commented 10 years ago

Ah, that makes sense now, thank you. You may want to update the readme regarding this for other users.