Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.9.x gives me timeout error when guard first boots up #85

Closed
agibralter opened this issue Oct 18, 2012 · 6 comments
Closed

1.9.x gives me timeout error when guard first boots up #85

agibralter opened this issue Oct 18, 2012 · 6 comments

Comments

@agibralter
Copy link

Ever since upgrading to 1.9.1, when I run bundle exec guard I get:

Guard::Jasmine starts Jasmine Gem test server on port 3002.
WARNING: Timeout while waiting for the server startup.
Waiting for Jasmine test runner at http://urtak-jasmine.dev/jasmine
ERROR: Jasmine test runner fails with response code 502

on the first run. But then if I edit a spec/javascripts/*.js spec file, it works. This is my setup: https://gist.github.com/3914760

Any thoughts?

@netzpirat
Copy link
Contributor

Before 1.9.0, the server startup waited infinitely until the server is available. This has been changed, so it'll timeout after a certain time. The default timeout is 15 seconds and can be changed with the :server_timeout option. I guess your app needs more time to startup and compile all the assets, so you may want to increase the timeout. That it tries to start the specs even when the server has a timeout is a bug and will be fixed asap.

@agibralter
Copy link
Author

Oh, as you can see in the Guardfile of my gist I was using the :timeout option. Did that change to :server_timeout in 1.9?

@agibralter
Copy link
Author

Also, how does this change the Guard::JasmineTask -t option?

@agibralter
Copy link
Author

Ah, ok, I pass --server-timeout 30000 and it works! Thank you!

@agibralter
Copy link
Author

Oh, sorry, --server-timeout/server_timeout uses seconds, no ms... so --server-timeout 30 :)

@netzpirat
Copy link
Contributor

Yeah, I'm not happy with the second/millisecond stuff. Need to change that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants