Skip to content

Commit e24a57b

Browse files
committed
Fix test: use unmapped driver so no bundled policy matches
The test 'leaves compatibility unset when no bundled policy matches this T3 Code version' was using driver 'codex', which has a matching policy in the bundled provider-compatibility.v1.json (t3CodeRange >=0.0.0, range <0.129.0 → broken). This caused buildServerProvider to set status to 'error' with a non-undefined compatibilityAdvisory, contradicting the test assertions. Switch to a driver not present in the bundled compatibility map so the test correctly exercises the no-matching-policy path.
1 parent b924b40 commit e24a57b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/server/src/provider/providerSnapshot.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ describe("providerModelsFromSettings", () => {
4646
describe("buildServerProvider", () => {
4747
it("leaves compatibility unset when no bundled policy matches this T3 Code version", () => {
4848
const provider = buildServerProvider({
49-
driver: ProviderDriverKind.make("codex"),
50-
presentation: { displayName: "Codex" },
49+
driver: ProviderDriverKind.make("unmapped-test-driver"),
50+
presentation: { displayName: "Test" },
5151
enabled: true,
5252
checkedAt: "2026-04-10T00:00:00.000Z",
5353
models: [],

0 commit comments

Comments
 (0)