Skip to content

Commit 039bb08

Browse files
committed
fix unit test
1 parent 8ea7255 commit 039bb08

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pallets/subtensor/tests/root.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -963,11 +963,7 @@ fn test_dissolve_network_not_owner_err() {
963963
register_ok_neuron(netuid, hotkey, owner_coldkey, 3);
964964

965965
assert_err!(
966-
SubtensorModule::dissolve_network(
967-
RuntimeOrigin::signed(random_coldkey),
968-
random_coldkey,
969-
netuid
970-
),
966+
SubtensorModule::dissolve_network(RuntimeOrigin::root(), random_coldkey, netuid),
971967
Error::<Test>::NotSubnetOwner
972968
);
973969
});

0 commit comments

Comments
 (0)