Skip to content

Commit 73554af

Browse files
authored
Merge pull request #2859 from opentensor/fix/roman/increase-period-for-test
`period=16` for fast blocks test
2 parents 0f4db69 + 570b982 commit 73554af

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/e2e_tests/test_commit_reveal_v3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ async def test_commit_and_reveal_weights_cr3(local_chain, subtensor, alice_walle
129129
wait_for_inclusion=True,
130130
wait_for_finalization=True,
131131
block_time=BLOCK_TIME,
132+
period=16,
132133
)
133134

134135
# Assert committing was a success

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)