stake-pool: Use `matches!` to allow for fix in underlying error (#2453)

This commit is contained in:
Jon Cinque 2021-09-26 23:58:30 +02:00 committed by GitHub
parent 1aa12ad24d
commit 5337a4f17f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -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]