Skip to content

Commit

Permalink
Double default when on potato CI, denote units in env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Aug 1, 2024
1 parent 799cc92 commit 6c58bb0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,16 @@ where
|| {
let mut diagnostics = Vec::new();

let timeout = match std::env::var("CARGO_DENY_TEST_TIMEOUT") {
Ok(timeout) => timeout.parse().unwrap_or(30),
_ => 30,
let default = if std::env::var_os("CI").is_some() {
60
} else {
30
};

let timeout = std::env::var("CARGO_DENY_TEST_TIMEOUT_SECS")
.ok()
.and_then(|ts| ts.parse().ok())
.unwrap_or(default);
let timeout = std::time::Duration::from_secs(timeout);

let trx = crossbeam::channel::after(timeout);
Expand Down

0 comments on commit 6c58bb0

Please sign in to comment.