From 9095e4a5868fb9554243a6950dd09274747bebff Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 9 Oct 2023 15:47:03 +0200 Subject: [PATCH] adds comment about checking for event not fired --- .../runtimes/bridge-hubs/test-utils/src/test_cases.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cumulus/parachains/runtimes/bridge-hubs/test-utils/src/test_cases.rs b/cumulus/parachains/runtimes/bridge-hubs/test-utils/src/test_cases.rs index 8636664b788c..90e5792b9109 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/test-utils/src/test_cases.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/test-utils/src/test_cases.rs @@ -1195,7 +1195,9 @@ pub fn set_bridge_operating_mode_as_normal_user_doesnt_work( ) .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 = >::events() .into_iter() .filter_map(|e| snowbridge_control_events(e.event.encode()));