Skip to content

Commit

Permalink
Add missing vm_test annotations. (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
anorth committed Jan 22, 2024
1 parent 3ad21ac commit 4126ccb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions integration_tests/src/tests/batch_onboarding_deals_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use crate::util::{
const BATCH_SIZE: usize = 8;
const SEAL_PROOF: RegisteredSealProof = RegisteredSealProof::StackedDRG32GiBV1P1;

#[vm_test]
pub fn pre_commit_requires_commd_test(v: &dyn VM) {
let deal_duration: ChainEpoch = Policy::default().min_sector_expiration;
let sector_duration: ChainEpoch =
Expand Down
1 change: 1 addition & 0 deletions integration_tests/src/tests/change_owner_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ pub fn keep_beneficiary_when_owner_changed_test(v: &dyn VM) {
assert_invariants(v, &Policy::default(), None)
}

#[vm_test]
pub fn change_owner_fail_test(v: &dyn VM) {
let addrs = create_accounts(v, 4, &TokenAmount::from_whole(10_000));
let seal_proof = RegisteredSealProof::StackedDRG32GiBV1P1;
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/src/tests/replica_update2_test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use export_macro::vm_test;
use fvm_ipld_encoding::ipld_block::IpldBlock;
use fvm_ipld_encoding::RawBytes;
use fvm_shared::bigint::BigInt;
Expand Down Expand Up @@ -42,6 +43,7 @@ use crate::util::{
PrecommitMetadata,
};

#[vm_test]
pub fn prove_replica_update2_test(v: &dyn VM) {
let policy = Policy::default();
let addrs = create_accounts(v, 3, &TokenAmount::from_whole(10_000));
Expand Down
7 changes: 2 additions & 5 deletions integration_tests/src/tests/replica_update_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ use crate::util::{
submit_invalid_post, submit_windowed_post, verifreg_add_client, verifreg_add_verifier,
};

#[vm_test]
pub fn replica_update_full_path_success_test(v: &dyn VM) {
let policy = Policy::default();
let (sector_info, worker, miner_id, deadline_index, partition_index, sector_size) =
Expand Down Expand Up @@ -99,6 +100,7 @@ pub fn replica_update_full_path_success(v: &dyn VM) {
replica_update_full_path_success_test(v);
}

#[vm_test]
pub fn upgrade_and_miss_post_test(v: &dyn VM) {
let (sector_info, worker, miner_id, deadline_index, partition_index, sector_size) =
create_miner_and_upgrade_sector(v);
Expand Down Expand Up @@ -149,11 +151,6 @@ pub fn upgrade_and_miss_post_test(v: &dyn VM) {
assert_invariants(v, &Policy::default(), None)
}

#[vm_test]
pub fn upgrade_and_miss_post(v: &dyn VM) {
upgrade_and_miss_post_test(v);
}

#[vm_test]
pub fn prove_replica_update_multi_dline_test(v: &dyn VM) {
let policy = Policy::default();
Expand Down

0 comments on commit 4126ccb

Please sign in to comment.