diff --git a/runtime/src/append_vec.rs b/runtime/src/append_vec.rs index 193aeddcacaec3..fc3834e54b543a 100644 --- a/runtime/src/append_vec.rs +++ b/runtime/src/append_vec.rs @@ -1150,7 +1150,7 @@ pub mod tests { } let result = AppendVec::new_from_file(path, accounts_len); - assert_matches!(result, Err(ref message) if message.to_string() == *"incorrect layout/length/data"); + assert_matches!(result, Err(ref message) if message.to_string().starts_with("incorrect layout/length/data")); } #[test]