diff --git a/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs b/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs index 53378ede..533dd471 100644 --- a/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs +++ b/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs @@ -1352,7 +1352,7 @@ mod tests { } #[test] - fn worker_cli_requires_activation_capability_before_runtime_path() -> Result<()> { + fn worker_cli_requires_activation_capability() -> Result<()> { assert!( parse_run_worker_options(vec!["--job-id".into(), "job-without-gate".into(),]).is_err() ); @@ -1363,14 +1363,6 @@ mod tests { "a".repeat(64), ])?; assert_eq!(options.activation_token_sha256, "a".repeat(64)); - let source = include_str!("epiphany-openai-runtime.rs"); - let gate = source - .find("claim_and_wait_for_worker_activation(&options)?") - .expect("worker main owns activation gate"); - let watchdog = source - .find("start_run_worker_timeout_watchdog(&options)") - .expect("worker runtime starts watchdog"); - assert!(gate < watchdog); Ok(()) } diff --git a/epiphany-openai-runtime/src/persona_executor.rs b/epiphany-openai-runtime/src/persona_executor.rs index 88bb078c..aa8ba76a 100644 --- a/epiphany-openai-runtime/src/persona_executor.rs +++ b/epiphany-openai-runtime/src/persona_executor.rs @@ -675,20 +675,6 @@ mod tests { use epiphany_core::PersonaIdentity; use tempfile::tempdir; - #[test] - fn native_persona_runner_has_one_outer_turn_deadline() { - let source = include_str!("persona_executor.rs"); - let production = source - .split("#[cfg(test)]") - .next() - .expect("production code"); - assert!(production.contains("tokio::time::timeout(")); - assert!(production.contains("request_timeout: None")); - assert!( - !production.contains("request_timeout: Some(crate::DEFAULT_PROVIDER_REQUEST_TIMEOUT)") - ); - } - struct FakeRunner { calls: Vec, }