Skip to content

Commit

Permalink
removed unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Dec 17, 2024
1 parent aee723d commit 3d7a15d
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions runtime/laos/src/configs/democracy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,38 +97,6 @@ mod tests {
traits::{EnsureOrigin, StorePreimage},
};

// TODO
#[ignore]
#[test]
fn veto_origin_check() {
let alice = AccountId::from_str(ALICE).unwrap();

ExtBuilder::default()
.with_balances(vec![(alice, 1000 * UNIT)])
.build()
.execute_with(|| {
// it's an error to try to create a veto origin with an account that is not a member
// of the technical committee
<Runtime as pallet_democracy::Config>::VetoOrigin::try_origin(
RuntimeOrigin::signed(alice),
)
.err()
.unwrap();

// add alice to technical committee
pallet_membership::Pallet::<Runtime, pallet_membership::Instance2>::add_member(
RuntimeOrigin::root(),
alice,
)
.unwrap();

// now it's ok to create a veto origin with alice
assert_ok!(<Runtime as pallet_democracy::Config>::VetoOrigin::try_origin(
RuntimeOrigin::signed(alice)
));
});
}

// TODO
#[ignore]
#[test]
Expand Down

0 comments on commit 3d7a15d

Please sign in to comment.