Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
adds comment about checking for event not fired
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden authored and claravanstaden committed Oct 9, 2023
1 parent 14475ee commit 9095e4a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,9 @@ pub fn set_bridge_operating_mode_as_normal_user_doesnt_work<Runtime>(
)
.ensure_complete());

// check that the SetOperatingMode mode was not emitted - user does not have permission
// check that the SetOperatingMode mode was not emitted - user does not have permission.
// It looks like Transact doesn't return the snowbridge control pallet extrinsic dispatch error
// so the only way to test that it didn't succeed to see thar an event has NOT been emitted
let mut events = <frame_system::Pallet<Runtime>>::events()
.into_iter()
.filter_map(|e| snowbridge_control_events(e.event.encode()));
Expand Down

0 comments on commit 9095e4a

Please sign in to comment.