You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently our integration tests for "balance(s)" endpoint doesn't check if non/retryable messages are correctly handled. We need to improve the coverage.
The text was updated successfully, but these errors were encountered:
Closes#2474
## Description
This PR changes the following:
1. Adds new test in `tests/tests/relayer.rs` - to ensure that only
**non**-retryable messages contribute to the balance returned from
`balance()`, `balances()` and `coins_to_spend()`[^1] endpoints
2. Modifies the `balance()` test in `tests/tests/balances.rs` to also
include some retryable message which is expected **not** to contribute
to the total balance.
* for `balances()` and `coins_to_spend()` it was already the case
1<sup>st</sup> test checks the behavior of the actual blockchain
operations while the 2<sup>nd</sup> tests the proper initialization of
the balances index at genesis.
## Checklist
- [X] Breaking changes are clearly marked as such in the PR description
and changelog
- [X] New behavior is reflected in tests
### Before requesting review
- [X] I have reviewed the code myself
[^1]: currently, `coins_to_spend()` is not using indexation, this will
change when [this PR](#2463)
is merged.
---------
Co-authored-by: Green Baneling <[email protected]>
Currently our integration tests for "balance(s)" endpoint doesn't check if non/retryable messages are correctly handled. We need to improve the coverage.
The text was updated successfully, but these errors were encountered: