From 5c68b602a5716ef23fa99aab0b1519faa2aa4cd7 Mon Sep 17 00:00:00 2001
From: bgallois <benjamin@gallois.cc>
Date: Tue, 12 Dec 2023 18:59:08 +0100
Subject: [PATCH] fix end2end tests offences

---
 runtime/gdev/tests/integration_tests.rs | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/runtime/gdev/tests/integration_tests.rs b/runtime/gdev/tests/integration_tests.rs
index f6b7cef6b..f47e1ae98 100644
--- a/runtime/gdev/tests/integration_tests.rs
+++ b/runtime/gdev/tests/integration_tests.rs
@@ -1368,6 +1368,7 @@ fn test_imonline_offence() {
 				member: 1
             },
         ));
+		assert_eq!(AuthorityMembers::blacklist().len(), 0);
 	})
 }
 #[test]
@@ -1397,7 +1398,7 @@ fn test_grandpa_offence() {
             time_slot,
             session_index,
             validator_set_count,
-            offender: offenders.pop().unwrap().into(),
+            offender: offenders.pop().unwrap(),
         };
         let _ = Offences::report_offence(vec![], offence);
         // An offence is deposited
@@ -1412,6 +1413,7 @@ fn test_grandpa_offence() {
         System::assert_has_event(RuntimeEvent::AuthorityMembers(
             pallet_authority_members::Event::MemberAddedToBlacklist { member: 1 },
         ));
+        assert_eq!(AuthorityMembers::blacklist().len(), 1);
     })
 }
 #[test]
@@ -1437,7 +1439,7 @@ fn test_babe_offence() {
             slot: 0u64.into(),
             session_index,
             validator_set_count,
-            offender: offenders.pop().unwrap().into(),
+            offender: offenders.pop().unwrap(),
         };
         let _ = Offences::report_offence(vec![], offence);
         // An offence is deposited
@@ -1452,5 +1454,6 @@ fn test_babe_offence() {
         System::assert_has_event(RuntimeEvent::AuthorityMembers(
             pallet_authority_members::Event::MemberAddedToBlacklist { member: 1 },
         ));
+        assert_eq!(AuthorityMembers::blacklist().len(), 1);
     })
 }
-- 
GitLab