Browse Source

Update test for terminating application

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

+ 2 - 4
src/content_working_group/tests.rs

@@ -614,11 +614,9 @@ fn terminate_curator_application_success() {
                 ()
             );
 
-            let event_curator_application_id = ensure_terminatecuratorapplication_event_deposited();
-
             assert_eq!(
-                result.curator_application_id,
-                event_curator_application_id
+                get_last_event_or_panic(),
+                lib::RawEvent::CuratorApplicationTerminated(result.curator_application_id)
             );
 
             /*