Skip to content

Commit bf979e8

Browse files
author
Roman
committed
fix test_incentive
1 parent 36209ea commit bf979e8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/e2e_tests/test_incentive.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ async def test_incentive(local_chain, subtensor, templates, alice_wallet, bob_wa
3737
"Subnet wasn't created successfully"
3838
)
3939

40+
# Disable commit_reveal on the subnet to check proper behavior
41+
status, error = sudo_set_admin_utils(
42+
local_chain,
43+
alice_wallet,
44+
call_function="sudo_set_commit_reveal_weights_enabled",
45+
call_params={
46+
"netuid": alice_subnet_netuid,
47+
"enabled": False,
48+
},
49+
)
50+
assert status is True, error
51+
4052
assert wait_to_start_call(subtensor, alice_wallet, alice_subnet_netuid)
4153

4254
# Register Bob as a neuron on the subnet

0 commit comments

Comments
 (0)