-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Specifications and type for failure reasons #113
Comments
Youre right, this is a breaking change that probably should not have happened. I'll make |
No worries! I'm happy to help where I can. |
To append to this issue, and I've not figured out why it's happening, but in our unit tests if we use the ExpectMsg pattern, it fails with a timeout (even though I can see the aggregate code send the message): This type of failure only happens with the latest 0.4.3 build. |
So in other words when you use a |
Not quite... the first part of what you said is correct, but for my resolution, when I use Ask, I assign the result to a variable, ala: |
This smells like a quirk of akka.net's test kit. on the top of my head I'm not sure why the declaration and assignment would result in a positive test to be honest. |
Maybe I can find out why tomorrow 😁 |
ExpectMsg still works for the SuccessExecutionResult. It's only the FailedExecutionResult that requires the special handling. We can work around it, so no rush. |
very odd. Your previous comment actually makes me a little bit more confused. I can see this working :
or this :
but not this
|
It is the second, not the third or your examples (an Ask and an Expect would of course be redundant). The success responses can still be EXPECTed, but we have to ASK for the failed execution results. In other words, the return of a SuccessExecutionResult seems unchanged, but the return of FailedExecutionResult has begun failing with this release, given that we were using the ExpectMsg pattern. Personally, I suspect it has to do with the usage of params in the Ctor, but that's just a guess. |
You are right, Its serialization seems like it. |
this has been fixed in 0.4.5 :) |
Hi Lutando,
I'm seeing that the "errors" parameter for the FailedExecutionResult has changed from an
IEnumerable<string>
tostring[]
. However, the type returned fromWhyIsNotSatisfiedBy(T obj)
in theSpecification<T>
class remainsIEnumerable<string>
. It is requiring that we now add ".ToArray( )" to our calls.Was this intentional?
... new FailedExecutionResult(ourSpecification.WhyIsNotSatisfiedBy(command).ToArray());
Not a major issue, I think.
The text was updated successfully, but these errors were encountered: