20 lines
517 B
Rust
Raw Normal View History

2026-02-02 07:19:22 +01:00
pub mod cfgsync;
pub mod env;
pub mod runtime;
pub mod scenario;
pub mod topology;
2026-02-02 07:19:22 +01:00
pub mod workloads;
2026-02-02 07:19:22 +01:00
use std::{env as std_env, ops::Mul as _, sync::LazyLock, time::Duration};
2026-02-02 07:19:22 +01:00
pub use runtime::{manual, process, retry};
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"));
/// 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 }
}