Repository navigation
Drop unreachable responses from the failing Codex plugin mock - #4032
Merged
Merged
Conversation
`setup_mock_codex_with_plugins_failing` registers `plugin add` and `plugin remove` responses that nothing runs. Its only caller is `test_plugins_codex_install_command_fails`, whose install stops at `plugin marketplace add` (exit 1) before reaching `plugin add`, and `plugin remove` is not part of the install path at all. The uninstall tests that would reach them use `setup_mock_codex_with_plugin_ops_failing` instead, which is the helper #4019 added for exactly that split. With the two gone the helper drives only what its name says, so the doc comment goes back to "marketplace commands fail".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
setup_mock_codex_with_plugins_failingregisters four failing responses, and only one of them can ever fire. Its sole caller istest_plugins_codex_install_command_fails, whose install stops atplugin marketplace add(exit 1) beforecodex plugin addis reached;codex plugin removeisn't part of the install path at all, and neither isplugin marketplace remove. The uninstall tests that would reach either plugin-op usesetup_mock_codex_with_plugin_ops_failing, the helper #4019 added for that split.This drops the two cross-layer responses and keeps
plugin marketplace remove, which is unexercised today but is what the helper is for: the pair reads as "the marketplace layer fails" (this helper) versus "the marketplace succeeds and the plugin ops fail" (setup_mock_codex_with_plugin_ops_failing), and a marketplace-removal failure is exactly the uninstall-side case #4033 is adding tests for. Dropping the two restores the doc comment above them to "marketplace commands fail".Verified with
cargo test --test integration -- test_plugins(26 passed). No snapshot referenced the removed stderr strings — the two that carryplugin add failed/plugin remove failedare driven bysetup_mock_codex_with_plugin_ops_failing.Raised as a review finding on #4019 after it merged, so nothing on that PR could pick it up.