Skip to content

Commit 0024a19

Browse files
author
Roman
committed
add waiting 1 epoch after setting weights_rate_limit
1 parent 936214f commit 0024a19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/e2e_tests/test_commit_weights.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ async def test_commit_weights_uses_next_nonce(local_chain, subtensor, alice_wall
223223
), "Failed to set weights_rate_limit"
224224
assert subtensor.weights_rate_limit(netuid=netuid) == 0
225225

226+
# wait while weights_rate_limit changes applied.
227+
subtensor.wait_for_block(subnet_tempo + 1)
228+
226229
# Commit-reveal values
227230
uids = np.array([0], dtype=np.int64)
228231
weights = np.array([0.1], dtype=np.float32)

0 commit comments

Comments
 (0)