Browse Source

Update applied on curator opening test

Use new event fetcher get_last_event_or_panic
Bedeho Mender 5 years ago
parent
commit
47f26803ea
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/content_working_group/tests.rs

+ 4 - 1
src/content_working_group/tests.rs

@@ -1522,7 +1522,10 @@ fn add_member_and_apply_on_opening(
         ()
     );
 
-    let (curator_opening_id, new_curator_application_id) = ensure_applieadoncuratoropening_event_deposited();
+    assert_eq!(
+        get_last_event_or_panic(),
+        lib::RawEvent::AppliedOnCuratorOpening(curator_opening_id, new_curator_application_id)
+    );
 
     assert!(
         CuratorApplicationById::<Test>::exists(new_curator_application_id)