From cf00b42af2cca8f84bf766f9a21720b3a4aed087 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Tue, 10 Sep 2024 09:20:37 -0400 Subject: [PATCH] Replace env! with option_env! --- tests/integration_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 8ec904d..579d1b3 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -108,7 +108,7 @@ fn create_test_options>( } fn sleep_duration() -> Duration { - if env!("CI") == "true" { + if matches!(option_env!("CI"), Some("true")) { Duration::from_secs(10) } else { Duration::from_millis(500)