Skip to content

Commit d352fd5

Browse files
Merge branch 'staging' into fix/e2e-test-incentive
2 parents ede515a + 5804210 commit d352fd5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/e2e_tests/test_set_weights.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import numpy as np
22
import pytest
33

4-
import asyncio
5-
64
from bittensor.utils.balance import Balance
75
from bittensor.utils.weight_utils import convert_weights_and_uids_for_emit
86
from tests.e2e_tests.utils.chain_interactions import (
97
sudo_set_hyperparameter_bool,
108
sudo_set_hyperparameter_values,
119
sudo_set_admin_utils,
10+
wait_epoch,
1211
)
1312

1413

@@ -120,7 +119,7 @@ async def test_set_weights_uses_next_nonce(local_chain, subtensor, alice_wallet)
120119
assert success is True, f"Failed to set weights for subnet {netuid}"
121120

122121
# Wait for the txs to be included in the chain
123-
await asyncio.sleep(4)
122+
await wait_epoch(subtensor, netuid=netuids[-1], times=4)
124123

125124
for netuid in netuids:
126125
# Query the Weights storage map for all three subnets

0 commit comments

Comments
 (0)