Properly test no-op does the right thing, as does real errors. #28

Merged
merged 1 commit into from Apr 11, 2017

Conversation

Projects
None yet
2 participants
Owner

jameinel commented Apr 11, 2017

Oddly enough we didn't have a test that we handled errors correctly.
The issue is that often when raising an error, we also set the ops to empty,
so we have to check the error before we do the rest.
Add a test that we handle these cases correctly.

(Review request: http://reviews.vapour.ws/r/6516/)

Properly test no-op does the right thing, as does real errors.
Oddly enough we didn't have a test that we handled errors correctly.
The issue is that often when raising an error, we also set the ops to empty,
so we have to check the error before we do the rest.
Add a test that we handle these cases correctly.

axw approved these changes Apr 11, 2017

@jameinel jameinel merged commit 42e03db into juju:master Apr 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment