Skip to content

Commit

Permalink
Replace env! with option_env!
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Sep 10, 2024
1 parent e6bb83d commit cf00b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fn create_test_options<P: AsRef<Utf8Path>>(
}

fn sleep_duration() -> Duration {
if env!("CI") == "true" {
if matches!(option_env!("CI"), Some("true")) {
Duration::from_secs(10)
} else {
Duration::from_millis(500)
Expand Down

0 comments on commit cf00b42

Please sign in to comment.