-
Notifications
You must be signed in to change notification settings - Fork 217
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
Add integration tests for error messages from balance endpoint #2987
Conversation
e53e75c
to
5f778f0
Compare
, expectErrorMessage errMsg403Fee | ||
] | ||
|
||
it "TRANS_NEW_BALANCE_02c - Cannot balance on when I cannot afford collateral" $ \ctx -> runResourceT $ do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly ADP-1241 case @jonathanknowles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@piotr-iohk I've prepared some enhancements to this test in the following branch:
https://github.com/input-output-hk/cardano-wallet/compare/jonathanknowles/adp-1225/test-enhancements
Will make this into a PR tomorrow morning!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update, I've added these commits to this PR.
5f778f0
to
82e025c
Compare
We: - sort the largest available combination of pure ada entries into ascending order, which eases testing. - use a more natural list format, which adds a space after the comma (to make the output more readable).
This will allow us to test the output of a failed collateral selection where the largest available combination of pure ada UTxOs has more than one entry.
It's important to test the variable parts of this error so that we we can verify that the user is being presented with sensible advice. It's also important to verify the numerical values as a sanity check that they are sensible. Note that our property tests all use simulated cost models, so it's doubly important to have /something/ in the integration test suite to act as a check for sensible values.
This is to account for recent fixes to the fee calculation logic within the `balanceTransaction` function, in particular: #2989
We expect to improve these errors in a future PR.
82e025c
to
83fcca6
Compare
bors r+ |
Build succeeded: |
Issue Number
ADP-1241
ADP-1225
Comments
This PR adds: