Closed obi1kenobi closed 9 years ago
Thanks for reporting. I see this every now and then as well. Setting the timeout
to 0
causes min-wd to not set a timeout at all. This was basically an optimization to avoid extra HTTP requests. If this override is removed, it will default to 10000 in min-wd, so this is what I'm going to do now.
Released in 2.10.1
.
Thanks for acting on this so quickly. I have a couple of final questions -- if the timeout defaults to 10000 and my tests require more than that to finish, won't the same problem happen again? If so, would it be reasonable to control this via a new config option on mochify, similarly to the Mocha timeout option?
Yes. You can configure the timeout in the .min-wd
file or in your package.json
: https://github.com/mantoni/min-webdriver#timeouts
Makes sense. I originally tried doing that, but I guess the timeout = 0 line in mochify may have overridden it. Thanks again!
I'm getting the following error message when running tests in Selenium + Chrome:
All tests pass when run individually -- the error seems to be related to the amount of time spent running the tests. Thus, running a few of the slowest tests together will also cause the error. Here is my setup: https://github.com/obi1kenobi/jester/tree/refactor
I'm very new to Selenium and Browserify, but changing the timeout from 0 to 10000 in this file of mochify fixes the problem and makes all tests pass.
Thoughts? Am I just using mochify wrong or is this a bug?