mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 04:28:01 +00:00
Check for both possible error variants (#870)
This commit is contained in:
committed by
Bastian Köcher
parent
ed5577bf33
commit
d9c553374c
@@ -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 <remark-payload>".to_string()
|
||||
])
|
||||
);
|
||||
|
||||
let info = err.info.unwrap();
|
||||
assert!(info.contains(&"remark-payload".to_string()) | info.contains(&"remark-size".to_string()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user