diff --git a/bridges/relays/bin-substrate/src/cli/encode_call.rs b/bridges/relays/bin-substrate/src/cli/encode_call.rs index 1f7861f21a..b5cdaaa1d3 100644 --- a/bridges/relays/bin-substrate/src/cli/encode_call.rs +++ b/bridges/relays/bin-substrate/src/cli/encode_call.rs @@ -268,12 +268,8 @@ mod tests { // then assert_eq!(err.kind, structopt::clap::ErrorKind::ArgumentConflict); - assert_eq!( - err.info, - Some(vec![ - "remark-size".to_string(), - "--remark-payload ".to_string() - ]) - ); + + let info = err.info.unwrap(); + assert!(info.contains(&"remark-payload".to_string()) | info.contains(&"remark-size".to_string())) } }