diff --git a/frame/support/src/storage/bounded_vec.rs b/frame/support/src/storage/bounded_vec.rs index e94e907f755de..fbbb9d4d26653 100644 --- a/frame/support/src/storage/bounded_vec.rs +++ b/frame/support/src/storage/bounded_vec.rs @@ -999,7 +999,7 @@ pub mod test { match c { Err(msg) => assert_eq!(format!("{}", msg), "out of bounds at line 1 column 11"), - _ => assert_eq!(c.is_err(), true), + _ => unreachable!("deserializer must raise error"), } } }