Browse Source

Forum: fix unit test

iorveth 3 years ago
parent
commit
739e824575
1 changed files with 2 additions and 1 deletions
  1. 2 1
      runtime-modules/forum/src/mock.rs

+ 2 - 1
runtime-modules/forum/src/mock.rs

@@ -695,9 +695,10 @@ pub fn create_thread_mock(
         assert_eq!(
             System::events().last().unwrap().event,
             TestEvent::forum_mod(RawEvent::ThreadCreated(
+                category_id,
                 thread_id,
+                TestForumModule::next_thread_id() - 1,
                 forum_user_id,
-                category_id,
                 title.clone(),
                 text.clone(),
                 poll_data.clone()