Browse Source

Update channel creation test

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

+ 6 - 1
src/content_working_group/tests.rs

@@ -1968,7 +1968,12 @@ impl CreateChannelFixture {
 
         // Assert that event was triggered,
         // keep channel id.
-        let channel_id = ensure_channelcreated_event_deposited();
+        assert_eq!(
+            get_last_event_or_panic(),
+            lib::RawEvent::ChannelCreated(old_next_channel_id)
+        );
+
+        let channel_id = old_next_channel_id;
 
         // Assert that given channel id has been added,
         // and has the right properties.