stake-pool: Use `matches!` to allow for fix in underlying error (#2453)
This commit is contained in:
parent
1aa12ad24d
commit
5337a4f17f
|
@ -316,13 +316,10 @@ async fn fail_double_remove() {
|
|||
.unwrap()
|
||||
.unwrap();
|
||||
|
||||
assert_eq!(
|
||||
assert!(matches!(
|
||||
error,
|
||||
TransactionError::InstructionError(
|
||||
1,
|
||||
InstructionError::BorshIoError("Unkown".to_string()), // sic
|
||||
)
|
||||
);
|
||||
TransactionError::InstructionError(1, InstructionError::BorshIoError(_),)
|
||||
));
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
|
Loading…
Reference in New Issue