Skip to content

Commit

Permalink
Tests: Fix test should_allow_player_3_to_finish_ongoing_game_with_eth…
Browse files Browse the repository at this point in the history
…_token_stake
  • Loading branch information
gianalarcon committed Jan 4, 2025
1 parent f78c4a7 commit fb04916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/snfoundry/contracts/src/test/TestContract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,6 @@ fn should_allow_player_3_to_finish_ongoing_game_with_eth_token_stake() {

let player_3 = PLAYER_3();
let erc20_dispatcher = IERC20Dispatcher { contract_address: eth_contract_address };
let player_3_balance_before = erc20_dispatcher.balance_of(player_3);

// when player 1 finish session
let mut spy = spy_events();
Expand Down Expand Up @@ -781,10 +780,11 @@ fn should_allow_player_3_to_finish_ongoing_game_with_eth_token_stake() {
let player_0_expected_balance = *players_balance_init[0] + amount / 3;
let player_1_expected_balance = *players_balance_init[1] + amount / 3;
let player_2_expected_balance = *players_balance_init[2] + amount / 3;
let player_3_expected_balance = *players_balance_init[3] - amount;
assert_eq!(player_0_balance_after, player_0_expected_balance);
assert_eq!(player_1_balance_after, player_1_expected_balance);
assert_eq!(player_2_balance_after, player_2_expected_balance);
assert_eq!(player_3_balance_after, player_3_balance_before);
assert_eq!(player_3_balance_after, player_3_expected_balance);
}

#[test]
Expand Down

0 comments on commit fb04916

Please sign in to comment.