Skip to content

Commit 818eff9

Browse files
committed
Updates test_staking test
1 parent 1fd6ee9 commit 818eff9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/e2e_tests/test_staking.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ def test_safe_swap_stake_scenarios(subtensor, alice_wallet, bob_wallet):
464464
)
465465
assert origin_stake > Balance(0), "Origin stake should be non-zero"
466466

467-
stake_swap_amount = Balance.from_tao(100)
468-
# 1. Try swap with strict threshold - should fail
467+
stake_swap_amount = Balance.from_tao(10_000)
468+
# 1. Try swap with strict threshold and big amount- should fail
469469
success = subtensor.swap_stake(
470470
wallet=alice_wallet,
471471
hotkey_ss58=alice_wallet.hotkey.ss58_address,
@@ -490,7 +490,8 @@ def test_safe_swap_stake_scenarios(subtensor, alice_wallet, bob_wallet):
490490
0
491491
), "Destination stake should remain 0 after failed swap"
492492

493-
# 2. Try swap with higher threshold - should succeed
493+
# 2. Try swap with higher threshold and less amount - should succeed
494+
stake_swap_amount = Balance.from_tao(100)
494495
success = subtensor.swap_stake(
495496
wallet=alice_wallet,
496497
hotkey_ss58=alice_wallet.hotkey.ss58_address,

0 commit comments

Comments
 (0)