-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
AsyncAssertion can't handle Eventually(functionReturnsNilError, <interval>, <interval>).Should(BeNil()) #555
Comments
Can you please show the code that you are using with PS: it would be helpful if you could report the original panic trace in such situations, as it gives us a much better picture, especially with respect to the parameters (including the offending |
You maybe right about the passing va LL he instead of function. If I get the time to try again I'll report here. Still panicking should be avoided. You should be able to use defer recover pattern to give a more helpful error. |
@onsi This actually raises the question of how we should handle a "constant" |
This should be fixed now and passing in a |
Thanks @thediveo ! |
It will panic when actualType.Kind() gets called
gomega/internal/async_assertion.go
Line 43 in fd130e1
Failing sample parameter to function.
actualType is AsyncAssertionType(0)
actualInput is nil <interface {}>
example function
The text was updated successfully, but these errors were encountered: