Skip to content

Commit 569f673

Browse files
authored
Merge branch 'staging' into feat/roman/add-certifi.sh
2 parents c53e0e2 + 80cc9bc commit 569f673

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/e2e_tests/test_root_set_weights.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@ async def test_root_reg_hyperparams(local_chain):
130130
alice_wallet.hotkey.ss58_address, netuid
131131
)
132132

133-
# Fetch the block since last update, so we can compare later
134-
initial_block = subtensor.blocks_since_last_update(
133+
# Fetch the block since last update for the neuron
134+
block_since_update = subtensor.blocks_since_last_update(
135135
netuid=netuid, uid=alice_uid_sn_1
136136
)
137+
assert block_since_update is not None
137138

138139
# Verify subnet <netuid> created successfully
139140
assert local_chain.query(
@@ -191,10 +192,6 @@ async def test_root_reg_hyperparams(local_chain):
191192
return_error_message=True,
192193
)
193194

194-
updated_block = subtensor.blocks_since_last_update(netuid=netuid, uid=0)
195-
# Ensure updates are reflected through incremental block numbers
196-
assert updated_block > initial_block
197-
198195
# TODO: Implement
199196
# This registers neuron using pow but it doesn't work on fast-blocks - we get stale pow
200197
# pow_registration = subtensor.register(bob_wallet, netuid=1)

0 commit comments

Comments
 (0)