diff --git a/runtime/gdev/tests/integration_tests.rs b/runtime/gdev/tests/integration_tests.rs index f6b7cef6b49620184694e7e411ded339540d5915..f47e1ae981f02e4ce7ac6310a513c3e6ff0635eb 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); }) }