Skip to content

Commit a832e21

Browse files
author
Roman
committed
oops, wrong exception
1 parent e9c0647 commit a832e21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e_tests/test_incentive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ async def test_incentive(local_chain, subtensor, templates, alice_wallet, bob_wa
104104
for attempt in range(max_retries):
105105
try:
106106
print(f"Attempt {attempt} to wait for set_weights...")
107-
await asyncio.wait_for(validator.set_weights.wait(), timeout=60)
107+
await asyncio.wait_for(validator.set_weights.wait(), timeout=30)
108108
break
109-
except asyncio.TimeoutError:
109+
except TimeoutError:
110110
print(f"Attempt {attempt} failed: validator.set_weights timed out.")
111111
if attempt == max_retries:
112112
raise

0 commit comments

Comments
 (0)