Skip to content

Commit 254f4a4

Browse files
Ambient Code Botclaude
andcommitted
fix: correct model index in backend test fixture
The pre-commit hook incorrectly changed Models[1] to Models[2]. With the reordered fixture list, claude-opus-4-6 remains at index 1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 017f50e commit 254f4a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/backend/handlers/models_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ var _ = Describe("Models Handler", Label(test_constants.LabelUnit, test_constant
277277
modelsCopy := make([]types.ModelEntry, len(manifest.Models))
278278
copy(modelsCopy, manifest.Models)
279279
manifest.Models = modelsCopy
280-
manifest.Models[2].Available = false // claude-opus-4-6
280+
manifest.Models[1].Available = false // claude-opus-4-6
281281

282282
manifestBytes, err := json.Marshal(manifest)
283283
Expect(err).NotTo(HaveOccurred())
@@ -512,7 +512,7 @@ var _ = Describe("Models Handler", Label(test_constants.LabelUnit, test_constant
512512
modelsCopy := make([]types.ModelEntry, len(manifest.Models))
513513
copy(modelsCopy, manifest.Models)
514514
manifest.Models = modelsCopy
515-
manifest.Models[2].Available = false // claude-opus-4-6
515+
manifest.Models[1].Available = false // claude-opus-4-6
516516

517517
manifestBytes, err := json.Marshal(manifest)
518518
Expect(err).NotTo(HaveOccurred())

0 commit comments

Comments
 (0)