Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejdfinity committed Aug 29, 2023
1 parent e528c4b commit 935a489
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/suite/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,7 @@ pub async fn icrc2_test_transfer_from_insufficient_funds(
)
.await?
{
Ok(_) => {
bail!("expected TransferFromError::InsufficientFunds, got Ok result"),
}
Ok(_) => bail!("expected TransferFromError::InsufficientFunds, got Ok result"),
Err(e) => match e {
TransferFromError::InsufficientFunds { balance } => {
if balance != transfer_amount {
Expand Down Expand Up @@ -437,9 +435,7 @@ pub async fn icrc2_test_transfer_from_insufficient_allowance(
)
.await?
{
Ok(_) => {
bail!("expected TransferFromError::InsufficientAllowance, got Ok result"),
}
Ok(_) => bail!("expected TransferFromError::InsufficientAllowance, got Ok result"),
Err(e) => match e {
TransferFromError::InsufficientAllowance { allowance } => {
if allowance != 0 {
Expand Down

0 comments on commit 935a489

Please sign in to comment.