From 89d732a04d5023a413f27aecf35a454597333c16 Mon Sep 17 00:00:00 2001 From: lorenzozane Date: Tue, 13 Oct 2026 14:10:36 +0000 Subject: [PATCH] test: remove flaky command auth integration test (#12083) Co-authored-by: Douwe Osinga --- crates/goose/src/providers/command_auth.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/crates/goose/src/providers/command_auth.rs b/crates/goose/src/providers/command_auth.rs index 8f89c859e..a8237fc84 100644 --- a/crates/goose/src/providers/command_auth.rs +++ b/crates/goose/src/providers/command_auth.rs @@ -450,23 +450,4 @@ mod tests { std::env::current_dir().unwrap().join("some/relative/dir") ); } - - #[cfg(unix)] - #[tokio::test] - async fn command_runs_with_configured_cwd_and_resolves_relative_path() { - let dir = tempfile::tempdir().unwrap(); - // Avoid ETXTBSY when parallel subprocesses inherit a freshly written executable. - std::os::unix::fs::symlink("/bin/pwd", dir.path().join("get-token")).unwrap(); - - let mut config = auth_config("./get-token", Vec::<&str>::new(), 3600); - config.cwd = Some(dir.path().to_string_lossy().to_string()); - let provider = CommandAuthProvider::new(&config, "Authorization", "Bearer "); - - let (_, value) = provider.get_auth_header().await.unwrap(); - let token = value.strip_prefix("Bearer ").unwrap(); - assert_eq!( - std::fs::canonicalize(token).unwrap(), - std::fs::canonicalize(dir.path()).unwrap() - ); - } }