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
Some tests require mocking WebSocket messages sent from the full node. When melting tokens, for example, the following happens:
hathor-wallet-headless -> POST push_tx -> hathor-core hathor-wallet-headless <- POST push_tx 200 OK <- hathor-core hathor-wallet-headless <- websocket message with type: "wallet:address_history" <- hathor-core
Although the PR #69 can handle the push_tx successfully, it does not change the wallet history, so no assertion to verify balance changes can be done. To do so, it is necessary to mock websocket messages with something like this skipped test. The test was skipped due to not work as expected, but it may help future efforts to test APIs that affect the wallet balance/history.
That said, some strategy to test websocket messages must be done to test the following cases:
Assert that simple-send-tx/send-tx/create-token/mint-token/melt-token correctly changes the wallet balance.
Assert that /wallet/utxo-consolidation consolidates utxos without affecting the wallet balance.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Some tests require mocking WebSocket messages sent from the full node. When melting tokens, for example, the following happens:
hathor-wallet-headless -> POST push_tx -> hathor-core
hathor-wallet-headless <- POST push_tx 200 OK <- hathor-core
hathor-wallet-headless <- websocket message with
type: "wallet:address_history"
<- hathor-coreAlthough the PR #69 can handle the push_tx successfully, it does not change the wallet history, so no assertion to verify balance changes can be done. To do so, it is necessary to mock websocket messages with something like this skipped test. The test was skipped due to not work as expected, but it may help future efforts to test APIs that affect the wallet balance/history.
That said, some strategy to test websocket messages must be done to test the following cases:
simple-send-tx/send-tx/create-token/mint-token/melt-token
correctly changes the wallet balance./wallet/utxo-consolidation
consolidates utxos without affecting the wallet balance.The text was updated successfully, but these errors were encountered: