From e8b5582a7d32d1068737f013754692ee7f68043b Mon Sep 17 00:00:00 2001 From: Luke Iannucci Date: Tue, 3 Sep 2024 12:44:20 -0400 Subject: [PATCH] add guarding --- crates/testing/tests/tests_1/test_success.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/testing/tests/tests_1/test_success.rs b/crates/testing/tests/tests_1/test_success.rs index e11b97dc1a..c229f68122 100644 --- a/crates/testing/tests/tests_1/test_success.rs +++ b/crates/testing/tests/tests_1/test_success.rs @@ -6,13 +6,16 @@ use std::time::Duration; +#[cfg(feature = "dependency-tasks")] +use hotshot_example_types::testable_delay::{ + DelayConfig, DelayOptions, DelaySettings, SupportedTraitTypesForAsyncDelay, +}; use hotshot_example_types::{ node_types::{ Libp2pImpl, MarketplaceUpgradeTestVersions, MemoryImpl, PushCdnImpl, TestConsecutiveLeaderTypes, TestVersions, }, state_types::TestTypes, - testable_delay::{DelayConfig, DelayOptions, DelaySettings, SupportedTraitTypesForAsyncDelay}, }; use hotshot_macros::cross_tests; use hotshot_testing::{ @@ -61,6 +64,7 @@ cross_tests!( }, ); +#[cfg(feature = "dependency-tasks")] cross_tests!( TestName: test_success_with_async_delay, Impls: [MemoryImpl, Libp2pImpl, PushCdnImpl], @@ -93,6 +97,7 @@ cross_tests!( }, ); +#[cfg(feature = "dependency-tasks")] cross_tests!( TestName: test_success_with_async_delay_2, Impls: [MemoryImpl, Libp2pImpl, PushCdnImpl],