Skip to content

Commit

Permalink
Fix power tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed May 22, 2024
1 parent f948a6c commit beae31a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion actors/power/tests/harness/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use fvm_shared::bigint::BigInt;
use fvm_shared::clock::ChainEpoch;
use fvm_shared::econ::TokenAmount;
use fvm_shared::error::ExitCode;
use fvm_shared::sector::SealVerifyInfo;
use fvm_shared::sector::{RegisteredPoStProof, RegisteredSealProof, StoragePower};
use fvm_shared::MethodNum;
use lazy_static::lazy_static;
Expand Down
10 changes: 0 additions & 10 deletions actors/power/tests/power_actor_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ mod cron_tests {
ExitCode::OK,
);
rt.set_caller(*CRON_ACTOR_CODE_ID, CRON_ACTOR_ADDR);
rt.expect_batch_verify_seals(Vec::new(), Ok(Vec::new()));

rt.call::<PowerActor>(Method::OnEpochTickEnd as u64, None).unwrap();

Expand Down Expand Up @@ -779,7 +778,6 @@ mod cron_tests {
ExitCode::OK,
);
rt.set_caller(*CRON_ACTOR_CODE_ID, CRON_ACTOR_ADDR);
rt.expect_batch_verify_seals(Vec::new(), Ok(Vec::new()));
rt.call::<PowerActor>(Method::OnEpochTickEnd as u64, None).unwrap();

rt.verify();
Expand Down Expand Up @@ -808,8 +806,6 @@ mod cron_tests {
);
rt.set_caller(*CRON_ACTOR_CODE_ID, CRON_ACTOR_ADDR);

rt.expect_batch_verify_seals(Vec::new(), Ok(Vec::new()));

rt.call::<PowerActor>(Method::OnEpochTickEnd as u64, None).unwrap();
rt.verify();

Expand Down Expand Up @@ -846,7 +842,6 @@ mod cron_tests {
ExitCode::OK,
);
rt.set_caller(*CRON_ACTOR_CODE_ID, CRON_ACTOR_ADDR);
rt.expect_batch_verify_seals(Vec::new(), Ok(Vec::new()));

rt.call::<PowerActor>(Method::OnEpochTickEnd as u64, None).unwrap();
rt.verify();
Expand Down Expand Up @@ -893,7 +888,6 @@ mod cron_tests {
rt.expect_validate_caller_addr(vec![CRON_ACTOR_ADDR]);

// process batch verifies first
rt.expect_batch_verify_seals(Vec::new(), Ok(Vec::new()));
h.expect_query_network_info(&rt);

let state: State = rt.get_state();
Expand Down Expand Up @@ -957,9 +951,6 @@ mod cron_tests {
rt.set_epoch(2);
rt.expect_validate_caller_addr(vec![CRON_ACTOR_ADDR]);

// process batch verifies first
rt.expect_batch_verify_seals(Vec::new(), Ok(Vec::new()));

h.expect_query_network_info(&rt);

let state: State = rt.get_state();
Expand Down Expand Up @@ -1027,7 +1018,6 @@ mod cron_tests {
ExitCode::OK,
);
rt.set_caller(*CRON_ACTOR_CODE_ID, CRON_ACTOR_ADDR);
rt.expect_batch_verify_seals(Vec::new(), Ok(Vec::new()));

rt.call::<PowerActor>(Method::OnEpochTickEnd as u64, None).unwrap();
rt.verify();
Expand Down

0 comments on commit beae31a

Please sign in to comment.