Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anorth committed Aug 31, 2022
1 parent 8dd3906 commit be262cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion actors/multisig/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use fvm_shared::clock::ChainEpoch;
use fvm_shared::econ::TokenAmount;
use fvm_shared::error::ExitCode;
use indexmap::IndexMap;
use num_traits::{Signed, Zero};
use num_traits::Zero;

use super::types::Transaction;
use super::TxnID;
Expand Down
2 changes: 1 addition & 1 deletion actors/multisig/tests/multisig_actor_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ mod constructor_tests {
);
rt.set_caller(*INIT_ACTOR_CODE_ID, *INIT_ACTOR_ADDR);
expect_abort(
ExitCode::USR_ILLEGAL_STATE,
ExitCode::USR_ILLEGAL_ARGUMENT,
rt.call::<MultisigActor>(
Method::Constructor as u64,
&RawBytes::serialize(&params).unwrap(),
Expand Down
4 changes: 2 additions & 2 deletions actors/paych/tests/paych_actor_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ mod paych_constructor {
&mut rt,
METHOD_CONSTRUCTOR,
&RawBytes::serialize(&params).unwrap(),
ExitCode::USR_ILLEGAL_STATE,
ExitCode::USR_ILLEGAL_ARGUMENT,
);
}

Expand Down Expand Up @@ -267,7 +267,7 @@ mod paych_constructor {
&mut rt,
METHOD_CONSTRUCTOR,
&RawBytes::serialize(&params).unwrap(),
ExitCode::USR_ILLEGAL_STATE,
ExitCode::USR_ILLEGAL_ARGUMENT,
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions actors/verifreg/tests/verifreg_actor_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ mod verifiers {
ExitCode::OK,
);
expect_abort(
ExitCode::USR_ILLEGAL_STATE,
ExitCode::USR_ILLEGAL_ARGUMENT,
h.add_verifier(&mut rt, &verifier_key_address, &allowance),
);
h.check_state(&rt);
Expand Down Expand Up @@ -335,7 +335,7 @@ mod clients {
);

expect_abort(
ExitCode::USR_ILLEGAL_STATE,
ExitCode::USR_ILLEGAL_ARGUMENT,
h.add_client(&mut rt, &VERIFIER, &client, &allowance_client, &allowance_client),
);
h.check_state(&rt);
Expand Down

0 comments on commit be262cc

Please sign in to comment.