Skip to content

Commit

Permalink
Disable autotests for beacon_chain (#2658)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Nov 11, 2021
1 parent 87b7b2e commit 4b345af
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
5 changes: 5 additions & 0 deletions beacon_node/beacon_chain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "beacon_chain"
version = "0.2.0"
authors = ["Paul Hauner <[email protected]>", "Age Manning <[email protected]>"]
edition = "2018"
autotests = false # using a single test binary compiles faster

[features]
default = ["participation_metrics"]
Expand Down Expand Up @@ -56,3 +57,7 @@ eth2 = { path = "../../common/eth2" }
strum = { version = "0.21.0", features = ["derive"] }
logging = { path = "../../common/logging" }
execution_layer = { path = "../execution_layer" }

[[test]]
name = "beacon_chain_tests"
path = "tests/main.rs"
4 changes: 1 addition & 3 deletions beacon_node/beacon_chain/tests/attestation_production.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#![cfg(not(debug_assertions))]

#[macro_use]
extern crate lazy_static;

use beacon_chain::test_utils::{AttestationStrategy, BeaconChainHarness, BlockStrategy};
use beacon_chain::{StateSkipConfig, WhenSlotSkipped};
use lazy_static::lazy_static;
use tree_hash::TreeHash;
use types::{AggregateSignature, EthSpec, Keypair, MainnetEthSpec, RelativeEpoch, Slot};

Expand Down
4 changes: 1 addition & 3 deletions beacon_node/beacon_chain/tests/attestation_verification.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#![cfg(not(debug_assertions))]

#[macro_use]
extern crate lazy_static;

use beacon_chain::{
attestation_verification::Error as AttnError,
test_utils::{
Expand All @@ -11,6 +8,7 @@ use beacon_chain::{
BeaconChain, BeaconChainTypes, WhenSlotSkipped,
};
use int_to_bytes::int_to_bytes32;
use lazy_static::lazy_static;
use state_processing::{
per_block_processing::errors::AttestationValidationError, per_slot_processing,
};
Expand Down
4 changes: 1 addition & 3 deletions beacon_node/beacon_chain/tests/block_verification.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#![cfg(not(debug_assertions))]

#[macro_use]
extern crate lazy_static;

use beacon_chain::test_utils::{
AttestationStrategy, BeaconChainHarness, BlockStrategy, EphemeralHarnessType,
};
use beacon_chain::{BeaconSnapshot, BlockError, ChainSegmentResult};
use lazy_static::lazy_static;
use logging::test_logger;
use slasher::{Config as SlasherConfig, Slasher};
use state_processing::{
Expand Down
7 changes: 7 additions & 0 deletions beacon_node/beacon_chain/tests/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mod attestation_production;
mod attestation_verification;
mod block_verification;
mod op_verification;
mod store_tests;
mod sync_committee_verification;
mod tests;
4 changes: 1 addition & 3 deletions beacon_node/beacon_chain/tests/op_verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
#![cfg(not(debug_assertions))]

#[macro_use]
extern crate lazy_static;

use beacon_chain::observed_operations::ObservationOutcome;
use beacon_chain::test_utils::{
test_spec, AttestationStrategy, BeaconChainHarness, BlockStrategy, DiskHarnessType,
};
use lazy_static::lazy_static;
use sloggers::{null::NullLoggerBuilder, Build};
use std::sync::Arc;
use store::{LevelDB, StoreConfig};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#![cfg(not(debug_assertions))]

#[macro_use]
extern crate lazy_static;

use beacon_chain::sync_committee_verification::Error as SyncCommitteeError;
use beacon_chain::test_utils::{BeaconChainHarness, EphemeralHarnessType, RelativeSyncCommittee};
use int_to_bytes::int_to_bytes32;
use lazy_static::lazy_static;
use safe_arith::SafeArith;
use store::{SignedContributionAndProof, SyncCommitteeMessage};
use tree_hash::TreeHash;
Expand Down
4 changes: 1 addition & 3 deletions beacon_node/beacon_chain/tests/tests.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#![cfg(not(debug_assertions))]

#[macro_use]
extern crate lazy_static;

use beacon_chain::{
attestation_verification::Error as AttnError,
test_utils::{
Expand All @@ -11,6 +8,7 @@ use beacon_chain::{
},
StateSkipConfig, WhenSlotSkipped,
};
use lazy_static::lazy_static;
use operation_pool::PersistedOperationPool;
use state_processing::{
per_slot_processing, per_slot_processing::Error as SlotProcessingError, EpochProcessingError,
Expand Down

0 comments on commit 4b345af

Please sign in to comment.