Skip to content

Commit 20d5d68

Browse files
committed
Fix tests
1 parent 79bcb7f commit 20d5d68

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bittensor_cli/src/bittensor/subtensor_interface.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,8 @@ async def get_stake_fee(
15471547
block_hash=block_hash,
15481548
)
15491549
result = Balance.from_rao(result_)
1550-
result.set_unit(origin_netuid)
1550+
if isinstance(origin_netuid, int):
1551+
result.set_unit(origin_netuid)
15511552

15521553
return result
15531554

tests/e2e_tests/test_unstaking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_unstaking(local_chain, wallet_setup):
231231
"144",
232232
],
233233
)
234-
assert "✅ Finalized" in stake_result.stdout
234+
assert "✅ Finalized" in stake_result.stdout, stake_result.stderr
235235

236236
stake_list = exec_command_bob(
237237
command="stake",

0 commit comments

Comments
 (0)