-
Notifications
You must be signed in to change notification settings - Fork 109
Using ctx.commandFailed with a subclass of TransportException breaks test #108
Comments
ctx.commandFailed
with a subclass of TransportException breaks test
Hmmm, this is interesting. This could be an issue. IIRC in actual core code throwing or using Oh! Or maybe the common denominator is throwing an exception on a |
Should we raise an issue in lagom/lagom about this? |
I'd like a double-check with this set of tests to make sure my suspicion is correct. We can raise the issue already and link it back here, I think the four tests listed by @yg-apaza are a great starting point to track and solve the issue. |
Is this the same issue? lagom/lagom#783 The creator closed it, but it sounds like he only found a workaround and it is still an actual bug. |
It's not the same issue. lagom/lagom#783 is about return types in a |
There's an issue now: lagom/lagom#1279 |
Current state:
TransportException
:BidValidationException
which doesn't implementequals
andhashCode
Test is passing
ctx.commandFailed
withUpdateFailureException
which isn't a subclass of TransportException and implementsequals
andhashCode
Test is also passing
ctx.commandFailed
withNotFound
which is a subclass of TransportExceptionTest is ignored
Forbidden
andNotFound
)Tests are passing
We need to tidy up this, whether throwing an exception or using
ctx.commandFailed
in all servicesThe text was updated successfully, but these errors were encountered: