Skip to content

Commit

Permalink
Fix failing test after setTotalWithdraw removal
Browse files Browse the repository at this point in the history
  • Loading branch information
loredanacirstea authored and LefterisJP committed Sep 20, 2018
1 parent 14ad055 commit 6bd4434
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions raiden_contracts/tests/test_channel_settle.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,20 @@ def test_settle_channel_state(

# Some manual checks for the final balances, in case the settlement algorithms
# used in `settle_state_tests` are incorrect
assert custom_token.functions.balanceOf(A).call() == pre_balance_A + 33
assert custom_token.functions.balanceOf(B).call() == pre_balance_B + 15

# FIXME after setTotalWithdraw is implemented again
post_balance_A = pre_balance_A + 33
post_balance_B = pre_balance_B + 15
post_balance_contract = pre_balance_contract - 48

# FIXME after setTotalWithdraw is implemented again
# we add the withdrawn amount here, because it was never withdrawn due to the
# removal of setTotalWithdraw
assert custom_token.functions.balanceOf(A).call() == post_balance_A + 10
assert custom_token.functions.balanceOf(B).call() == post_balance_B + 5
assert custom_token.functions.balanceOf(
token_network.address,
).call() == pre_balance_contract - 48
).call() == post_balance_contract - 15


def test_settle_single_direct_transfer_for_closing_party(
Expand Down

0 comments on commit 6bd4434

Please sign in to comment.