Skip to content

Commit 570b982

Browse files
author
Roman
committed
proper test
1 parent 4251e3e commit 570b982

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/e2e_tests/test_staking.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from tests.helpers.helpers import ApproxBalance
66
from tests.e2e_tests.utils.e2e_test_utils import wait_to_start_call
77

8-
logging.enable_info()
8+
logging.enable_debug()
99

1010

1111
def test_single_operation(subtensor, alice_wallet, bob_wallet):
@@ -162,11 +162,11 @@ def test_single_operation(subtensor, alice_wallet, bob_wallet):
162162
),
163163
}
164164

165+
# unstale all to check in later
165166
success = subtensor.unstake(
166167
wallet=alice_wallet,
167168
hotkey_ss58=bob_wallet.hotkey.ss58_address,
168169
netuid=alice_subnet_netuid,
169-
amount=stake_bob,
170170
wait_for_inclusion=True,
171171
wait_for_finalization=True,
172172
period=16,
@@ -180,6 +180,7 @@ def test_single_operation(subtensor, alice_wallet, bob_wallet):
180180
netuid=alice_subnet_netuid,
181181
)
182182

183+
# all balances have been unstaked
183184
assert stake == Balance(0).set_unit(alice_subnet_netuid)
184185

185186

0 commit comments

Comments
 (0)