From 34ad608a9ab31700526ee7226f8b9d560d56028c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 05:35:42 +0000 Subject: [PATCH] refactor: use test_secrets_store() helper in orchestrator api test Co-authored-by: henrypark133 <16583448+henrypark133@users.noreply.github.com> --- src/orchestrator/api.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/orchestrator/api.rs b/src/orchestrator/api.rs index 0e8a876e..00a6b49a 100644 --- a/src/orchestrator/api.rs +++ b/src/orchestrator/api.rs @@ -458,7 +458,7 @@ mod tests { use crate::orchestrator::auth::TokenStore; use crate::orchestrator::job_manager::{ContainerJobConfig, ContainerJobManager}; use crate::testing::StubLlm; - use crate::testing::credentials::TEST_CRYPTO_KEY; + use crate::testing::credentials::test_secrets_store; use super::*; @@ -663,11 +663,7 @@ mod tests { #[tokio::test] async fn credentials_returns_secrets_when_store_configured() { use secrecy::SecretString; - let crypto = Arc::new( - crate::secrets::SecretsCrypto::new(SecretString::from(TEST_CRYPTO_KEY.to_string())) - .unwrap(), - ); - let secrets_store = Arc::new(crate::secrets::InMemorySecretsStore::new(crypto)); + let secrets_store = Arc::new(test_secrets_store()); // Create a secret secrets_store