diff --git a/crates/op-host-services/src/cli_model_discovery_tests.rs b/crates/op-host-services/src/cli_model_discovery_tests.rs index c7fce31b3..06857ce0e 100644 --- a/crates/op-host-services/src/cli_model_discovery_tests.rs +++ b/crates/op-host-services/src/cli_model_discovery_tests.rs @@ -132,6 +132,12 @@ fn verified_catalogs_reject_empty_auth_and_unknown_output() { // contract, exercised in `cli_probe_support`'s own test module // (`bounded_cli_output_drains_large_stdout_and_stderr_before_exit`). +/// Probe budget for the hung-CLI tests. Generous relative to spawning a +/// fake CLI (milliseconds) so the timeout branch is reached with the +/// script's output already captured, which is what these tests assert on. +#[cfg(unix)] +const PROBE_BUDGET: Duration = Duration::from_secs(2); + /// Writes an executable `/bin/sh` script standing in for a real CLI so /// `*_models_from_exe` can be pointed at it directly — the discover /// chain's fixed `&["models"]` args rule out the `/bin/sh -c