Skip to content

Commit 1427d77

Browse files
author
Roman
committed
test multiple times 3 tests
1 parent c8a5aff commit 1427d77

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/e2e-subtensor-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
- name: Find test files
3939
id: get-tests
4040
run: |
41-
test_files=$(find tests/e2e_tests -name "test*.py" | jq -R -s -c 'split("\n") | map(select(. != ""))')
41+
# test_files=$(find tests/e2e_tests -name "test*.py" | jq -R -s -c 'split("\n") | map(select(. != ""))')
4242
# keep it here for future debug
43-
# test_files=$(find tests/e2e_tests -type f -name "test*.py" | grep -E 'test_(incentive|commit_weights|set_weights)\.py$' | jq -R -s -c 'split("\n") | map(select(. != ""))')
43+
test_files=$(find tests/e2e_tests -type f -name "test*.py" | grep -E 'test_(incentive|commit_weights|set_weights)\.py$' | jq -R -s -c 'split("\n") | map(select(. != ""))')
4444
echo "::set-output name=test-files::$test_files"
4545
shell: bash
4646

tests/e2e_tests/test_commit_weights.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ async def test_commit_weights_uses_next_nonce(local_chain, subtensor, alice_wall
165165
Raises:
166166
AssertionError: If any of the checks or verifications fail
167167
"""
168-
subnet_tempo = 100
168+
subnet_tempo = 50
169169
netuid = 2
170170

171171
# Wait for 2 tempos to pass as CR3 only reveals weights after 2 tempos
@@ -267,6 +267,9 @@ def send_commit(salt_, weight_uids_, weight_vals_):
267267

268268
send_commit(salt, weight_uids, weight_vals)
269269

270+
# let's wait for 3 (12 fast blocks) seconds between transactions
271+
subtensor.wait_for_block(subtensor.block + 12)
272+
270273
logging.console.info(
271274
f"[orange]Nonce after third commit_weights: "
272275
f"{subtensor.substrate.get_account_next_index(alice_wallet.hotkey.ss58_address)}[/orange]"

0 commit comments

Comments
 (0)