codex: fix CI failure on PR #31343

This commit is contained in:
Steven Lee
2026-07-07 21:08:11 +00:00
parent 4b0a4d9485
commit b9bbf5be87
2 changed files with 8 additions and 8 deletions
@@ -104,7 +104,7 @@ async fn app_read_deduplicates_orders_partial_misses_and_reuses_cached_metadata(
#[tokio::test]
async fn app_read_backend_failure_preserves_fresh_cached_records() -> Result<()> {
let state = BatchServerState::new(json!({
"connectors": [connector_response("cached", "Cached", None)]
"connectors": [connector_response("cached", "Cached", /*install_url*/ None)]
}));
let (server_url, server_handle) = start_batch_server(state.clone()).await?;
let codex_home = TempDir::new()?;
@@ -116,7 +116,7 @@ async fn app_read_backend_failure_preserves_fresh_cached_records() -> Result<()>
assert_eq!(
read_apps(&mut mcp, vec!["cached"]).await?,
AppsReadResponse {
apps: vec![metadata("cached", "Cached", None)],
apps: vec![metadata("cached", "Cached", /*install_url*/ None)],
missing_app_ids: Vec::new(),
}
);
@@ -140,7 +140,7 @@ async fn app_read_backend_failure_preserves_fresh_cached_records() -> Result<()>
assert_eq!(
read_apps(&mut mcp, vec!["cached"]).await?,
AppsReadResponse {
apps: vec![metadata("cached", "Cached", None)],
apps: vec![metadata("cached", "Cached", /*install_url*/ None)],
missing_app_ids: Vec::new(),
}
);
@@ -22,31 +22,31 @@ fn records_are_isolated_by_backend_account_user_and_workspace_scope() {
"https://backend-a.example".to_string(),
Some("account-a".to_string()),
Some("user-a".to_string()),
true,
/*is_workspace_account*/ true,
);
let other_backend = ConnectorMetadataStore::new(
"https://backend-b.example".to_string(),
Some("account-a".to_string()),
Some("user-a".to_string()),
true,
/*is_workspace_account*/ true,
);
let other_account = ConnectorMetadataStore::new(
"https://backend-a.example".to_string(),
Some("account-b".to_string()),
Some("user-a".to_string()),
true,
/*is_workspace_account*/ true,
);
let other_user = ConnectorMetadataStore::new(
"https://backend-a.example".to_string(),
Some("account-a".to_string()),
Some("user-b".to_string()),
true,
/*is_workspace_account*/ true,
);
let personal_account = ConnectorMetadataStore::new(
"https://backend-a.example".to_string(),
Some("account-a".to_string()),
Some("user-a".to_string()),
false,
/*is_workspace_account*/ false,
);
let ids = vec!["scoped-app".to_string()];