Skip to content

fix(macos): unbreak macOS tests after inferenceMode removal#30237

Merged
siddseethepalli merged 1 commit into
mainfrom
do/fix-inference-mode-tests
May 11, 2026
Merged

fix(macos): unbreak macOS tests after inferenceMode removal#30237
siddseethepalli merged 1 commit into
mainfrom
do/fix-inference-mode-tests

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented May 11, 2026

Summary

  • Delete two InferenceProfileEditorTests cases that referenced SettingsStore.inferenceMode, removed in feat(macos): inference providers UI (Phase 2 PR-E) #30231 along with the managed-only branch of availableProviderIds.
  • Replace XCTAssertEqual(result, []) in ProviderConnectionClientTests with XCTAssertEqual(result?.count, 0) — the generated ProviderConnection struct is Codable, Sendable but not Equatable.

Original prompt

Fix the macOS Tests CI job (run 25645467173) that broke on main after #30231 landed. The build failed with value of type 'SettingsStore' has no member 'inferenceMode' at InferenceProfileEditorTests.swift:795,805 and XCTAssertEqual ... requires that 'ProviderConnection' conform to 'Equatable' at ProviderConnectionClientTests.swift:113. Scope this fix to those two failures only.


Open in Devin Review

…sert

PR #30231 removed `SettingsStore.inferenceMode` and the managed-only
branch of `InferenceProfileEditor.availableProviderIds`, but two
tests in `InferenceProfileEditorTests.swift` still referenced the
deleted field. Delete them.

`ProviderConnectionClientTests.testListReturnsEmptyWhenClientReturnsEmpty`
called `XCTAssertEqual(result, [])`, but `ProviderConnection` is a
generated Codable/Sendable struct without an `Equatable` conformance.
Switch to `XCTAssertEqual(result?.count, 0)` to match the style used
by the surrounding tests.
@siddseethepalli siddseethepalli merged commit 84190c0 into main May 11, 2026
@siddseethepalli siddseethepalli deleted the do/fix-inference-mode-tests branch May 11, 2026 01:37
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant