2026-02-02 07:19:22 +01:00
|
|
|
pub mod cfgsync;
|
|
|
|
|
pub mod env;
|
|
|
|
|
pub mod runtime;
|
2025-12-01 12:48:39 +01:00
|
|
|
pub mod scenario;
|
|
|
|
|
pub mod topology;
|
2026-02-02 07:19:22 +01:00
|
|
|
pub mod workloads;
|
2025-12-01 12:48:39 +01:00
|
|
|
|
2026-02-02 07:19:22 +01:00
|
|
|
use std::{env as std_env, ops::Mul as _, sync::LazyLock, time::Duration};
|
2025-12-01 12:48:39 +01:00
|
|
|
|
2026-02-02 07:19:22 +01:00
|
|
|
pub use runtime::{manual, process, retry};
|
2025-12-01 12:48:39 +01:00
|
|
|
|
|
|
|
|
static IS_SLOW_TEST_ENV: LazyLock<bool> =
|
2026-02-02 07:19:22 +01:00
|
|
|
LazyLock::new(|| std_env::var("SLOW_TEST_ENV").is_ok_and(|s| s == "true"));
|
2025-12-01 12:48:39 +01:00
|
|
|
|
|
|
|
|
/// In slow test environments like Codecov, use 2x timeout.
|
|
|
|
|
#[must_use]
|
|
|
|
|
pub fn adjust_timeout(d: Duration) -> Duration {
|
|
|
|
|
if *IS_SLOW_TEST_ENV { d.mul(2) } else { d }
|
|
|
|
|
}
|