mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 13:51:11 +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
|
// then
|
||||||
assert_eq!(err.kind, structopt::clap::ErrorKind::ArgumentConflict);
|
assert_eq!(err.kind, structopt::clap::ErrorKind::ArgumentConflict);
|
||||||
assert_eq!(
|
|
||||||
err.info,
|
let info = err.info.unwrap();
|
||||||
Some(vec![
|
assert!(info.contains(&"remark-payload".to_string()) | info.contains(&"remark-size".to_string()))
|
||||||
"remark-size".to_string(),
|
|
||||||
"--remark-payload <remark-payload>".to_string()
|
|
||||||
])
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user