Skip to content

Commit 5ab7c6a

Browse files
committed
papyrus_base_layer: gate integration tests
1 parent 877a4c9 commit 5ab7c6a

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

crates/apollo_l1_provider/tests/flow_test_cancellation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(any(test, feature = "testing"))]
12
mod utils;
23
use std::time::Duration;
34

crates/apollo_l1_provider/tests/flow_test_consumed.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(any(test, feature = "testing"))]
12
mod utils;
23
use std::sync::atomic::{AtomicU64, Ordering};
34
use std::sync::Arc;
@@ -17,14 +18,15 @@ use starknet_api::core::{ContractAddress, EntryPointSelector, Nonce};
1718
use starknet_api::transaction::fields::{Calldata, Fee};
1819
use starknet_api::transaction::{L1HandlerTransaction, TransactionVersion};
1920
use starknet_types_core::felt::Felt;
20-
use utils::{setup_scraper_and_provider, TARGET_L2_HEIGHT, TIMELOCK_DURATION};
21-
22-
use crate::utils::{
21+
use utils::{
22+
setup_scraper_and_provider,
2323
TokioLinkedClock,
2424
CALL_DATA,
2525
L1_CONTRACT_ADDRESS,
2626
L2_ENTRY_POINT,
2727
POLLING_INTERVAL_DURATION,
28+
TARGET_L2_HEIGHT,
29+
TIMELOCK_DURATION,
2830
};
2931

3032
fn block_from_number(number: L1BlockNumber) -> L1BlockReference {

crates/apollo_l1_provider/tests/flow_test_event_filters.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![cfg(any(test, feature = "testing"))]
2+
mod utils;
3+
14
use std::str::FromStr;
25

36
use alloy::consensus::Header as HeaderInner;
@@ -23,7 +26,6 @@ use papyrus_base_layer::test_utils::{
2326
DEFAULT_ANVIL_L1_ACCOUNT_ADDRESS,
2427
DEFAULT_ANVIL_L1_DEPLOYED_ADDRESS,
2528
};
26-
mod utils;
2729
use papyrus_base_layer::BaseLayerContract;
2830
use utils::{L1_CONTRACT_ADDRESS, L2_ENTRY_POINT};
2931

crates/apollo_l1_provider/tests/flow_test_one_tx.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
#![cfg(any(test, feature = "testing"))]
12
mod utils;
3+
24
use std::time::Duration;
35

46
use apollo_l1_provider_types::{L1ProviderClient, SessionState, ValidationStatus};

crates/apollo_l1_provider/tests/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// TODO(guyn): remove this after sorting out the compilation flags on all the flow tests.
1+
#![cfg(any(test, feature = "testing"))]
22
#![allow(dead_code)]
33
use std::error::Error;
44
use std::fmt::Debug;

0 commit comments

Comments
 (0)