MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / test_walltime_executor_fails

Function test_walltime_executor_fails

src/executor/tests.rs:318–329  ·  view source on GitHub ↗
(#[values(false, true)] enable_profiler: bool)

Source from the content-addressed store, hash-verified

316 #[rstest::rstest]
317 #[test_log::test(tokio::test)]
318 async fn test_walltime_executor_fails(#[values(false, true)] enable_profiler: bool) {
319 let (_permit, mut executor) = get_walltime_executor().await;
320
321 let config = walltime_config("exit 1", enable_profiler);
322 // Unset GITHUB_ACTIONS to force LocalProvider which supports repository_override
323 temp_env::async_with_vars(&[("GITHUB_ACTIONS", None::<&str>)], async {
324 let (execution_context, _temp_dir) = create_test_setup(config).await;
325 let result = executor.run(&execution_context, &None).await;
326 assert!(result.is_err(), "Command should fail");
327 })
328 .await;
329 }
330 //
331 // Exec-harness currently does not support the inline multi command scripts
332 #[template]

Callers

nothing calls this directly

Calls 4

get_walltime_executorFunction · 0.85
walltime_configFunction · 0.85
create_test_setupFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected