mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
codex: fix CI failure on PR #31343
This commit is contained in:
@@ -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()];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user