codex: fix CI failure on PR #25193

This commit is contained in:
Adam Perry
2026-06-01 19:29:36 +00:00
parent 7784179e98
commit 9441ce2b71
@@ -336,12 +336,17 @@ async fn plugin_share_save_rejects_when_plugin_sharing_disabled() -> Result<()>
let plugin_root = TempDir::new()?;
let plugin_path = write_test_plugin(plugin_root.path(), "demo-plugin")?;
let server = MockServer::start().await;
// This test verifies sharing makes no backend request; startup analytics
// would otherwise be an unrelated request to the same mock server.
std::fs::write(
codex_home.path().join("config.toml"),
format!(
r#"
chatgpt_base_url = "{}/backend-api"
[analytics]
enabled = false
[features]
plugins = true
remote_plugin = true