Skip to content

Commit 315dedc

Browse files
committed
fix test
1 parent a69315b commit 315dedc

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

pallets/subtensor/src/tests/subnet.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -340,17 +340,15 @@ fn test_subtoken_enable_reject_trading_before_enable() {
340340
stake_bal
341341
);
342342

343-
assert_noop!(
344-
SubtensorModule::remove_stake_limit(
345-
RuntimeOrigin::signed(coldkey_account_id),
346-
hotkey_account_id,
347-
netuid,
348-
amount,
349-
limit_price,
350-
false
351-
),
352-
Error::<Test>::SubtokenDisabled
353-
);
343+
SubtensorModule::remove_stake_limit(
344+
RuntimeOrigin::signed(coldkey_account_id),
345+
hotkey_account_id,
346+
netuid,
347+
amount,
348+
limit_price,
349+
false,
350+
)
351+
.unwrap();
354352

355353
assert_noop!(
356354
SubtensorModule::remove_stake(

0 commit comments

Comments
 (0)