-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
gomega.Eventually ignores default timeout #781
Comments
hey all - sorry for the delay This was - indeed - an intentional design choice. The thinking was that users choosing to pass in a context would want only the context to govern the timeout for a whole collection of I'd propose adding a new configuration to Gomega like The alternative would be for me to detect when the passed in context is a ginkgo context that has no timeout and enforce the default timeout - but that seems too magical (even for me!) Thoughts? |
That's not how we use Gomega in Kubernetes. We have a global default and then the context typically always is the context straight from Ginkgo, with no extra timeouts added to it. If a
That works for me. |
So y'all don't use the |
No, not in Kubernetes. |
looks good to me.
No. In my case, |
Just added |
In a Kubernetes e2e_node test, we have:
But that call doesn't time out. Eventually the entire suite gets killed by the CI, which doesn't give any information about the reason why it didn't stop.
I think I traced it to:
gomega/internal/async_assertion.go
Lines 330 to 344 in 7cabed6
assertion.ctx
is from Ginkgo and the specific assertion doesn't have a timeout:Therefore the default timeout gets ignored. This seems wrong.
gomega.Eventually
should stop when the context gets canceled or thegomega.Eventually
timeout occurs, whether that was set per call or is the default.The text was updated successfully, but these errors were encountered: