Skip to content

Commit 251df70

Browse files
committed
Disable autotests for beacon_chain
1 parent e2a5f66 commit 251df70

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

beacon_node/beacon_chain/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "beacon_chain"
33
version = "0.2.0"
44
authors = ["Paul Hauner <[email protected]>", "Age Manning <[email protected]>"]
55
edition = "2018"
6+
autotests = false # using a single test binary compiles faster
67

78
[features]
89
default = ["participation_metrics"]
@@ -56,3 +57,7 @@ slasher = { path = "../../slasher" }
5657
eth2 = { path = "../../common/eth2" }
5758
strum = { version = "0.21.0", features = ["derive"] }
5859
execution_layer = { path = "../execution_layer" }
60+
61+
[[test]]
62+
name = "beacon_chain_tests"
63+
path = "tests/main.rs"

beacon_node/beacon_chain/tests/attestation_production.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#![cfg(not(debug_assertions))]
22

3-
#[macro_use]
4-
extern crate lazy_static;
5-
63
use beacon_chain::test_utils::{AttestationStrategy, BeaconChainHarness, BlockStrategy};
74
use beacon_chain::{StateSkipConfig, WhenSlotSkipped};
5+
use lazy_static::lazy_static;
86
use tree_hash::TreeHash;
97
use types::{AggregateSignature, EthSpec, Keypair, MainnetEthSpec, RelativeEpoch, Slot};
108

beacon_node/beacon_chain/tests/attestation_verification.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#![cfg(not(debug_assertions))]
22

3-
#[macro_use]
4-
extern crate lazy_static;
5-
63
use beacon_chain::{
74
attestation_verification::Error as AttnError,
85
test_utils::{
@@ -11,6 +8,7 @@ use beacon_chain::{
118
BeaconChain, BeaconChainTypes, WhenSlotSkipped,
129
};
1310
use int_to_bytes::int_to_bytes32;
11+
use lazy_static::lazy_static;
1412
use state_processing::{
1513
per_block_processing::errors::AttestationValidationError, per_slot_processing,
1614
};

beacon_node/beacon_chain/tests/block_verification.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#![cfg(not(debug_assertions))]
22

3-
#[macro_use]
4-
extern crate lazy_static;
5-
63
use beacon_chain::test_utils::{
74
test_logger, AttestationStrategy, BeaconChainHarness, BlockStrategy, EphemeralHarnessType,
85
};
96
use beacon_chain::{BeaconSnapshot, BlockError, ChainSegmentResult};
7+
use lazy_static::lazy_static;
108
use slasher::{Config as SlasherConfig, Slasher};
119
use state_processing::{
1210
common::get_indexed_attestation,
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mod attestation_production;
2+
mod attestation_verification;
3+
mod block_verification;
4+
mod op_verification;
5+
mod store_tests;
6+
mod sync_committee_verification;
7+
mod tests;

beacon_node/beacon_chain/tests/op_verification.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
33
#![cfg(not(debug_assertions))]
44

5-
#[macro_use]
6-
extern crate lazy_static;
7-
85
use beacon_chain::observed_operations::ObservationOutcome;
96
use beacon_chain::test_utils::{
107
test_spec, AttestationStrategy, BeaconChainHarness, BlockStrategy, DiskHarnessType,
118
};
9+
use lazy_static::lazy_static;
1210
use sloggers::{null::NullLoggerBuilder, Build};
1311
use std::sync::Arc;
1412
use store::{LevelDB, StoreConfig};

beacon_node/beacon_chain/tests/sync_committee_verification.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#![cfg(not(debug_assertions))]
22

3-
#[macro_use]
4-
extern crate lazy_static;
5-
63
use beacon_chain::sync_committee_verification::Error as SyncCommitteeError;
74
use beacon_chain::test_utils::{BeaconChainHarness, EphemeralHarnessType, RelativeSyncCommittee};
85
use int_to_bytes::int_to_bytes32;
6+
use lazy_static::lazy_static;
97
use safe_arith::SafeArith;
108
use store::{SignedContributionAndProof, SyncCommitteeMessage};
119
use tree_hash::TreeHash;

beacon_node/beacon_chain/tests/tests.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#![cfg(not(debug_assertions))]
22

3-
#[macro_use]
4-
extern crate lazy_static;
5-
63
use beacon_chain::{
74
attestation_verification::Error as AttnError,
85
test_utils::{
@@ -11,6 +8,7 @@ use beacon_chain::{
118
},
129
StateSkipConfig, WhenSlotSkipped,
1310
};
11+
use lazy_static::lazy_static;
1412
use operation_pool::PersistedOperationPool;
1513
use state_processing::{
1614
per_slot_processing, per_slot_processing::Error as SlotProcessingError, EpochProcessingError,

0 commit comments

Comments
 (0)