tui3 credit tests read the real OPENROUTER_API_KEY and fail when it is set
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- testing-qa
Direzione di ricerca
Inizia in internal/tui3 con TestAFreeCatalogPriceClearsTheWarningWhenTheListArrives e i relativi test dei crediti. Esegui il test indicato con OPENROUTER_API_KEY impostata e senza, per riprodurre la differenza, quindi esamina come i test ottengono la chiave o la fonte del saldo. Il lavoro è completato quando i test interessati usano una fonte controllata e passano indipendentemente dall’ambiente del processo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Since the OpenRouter balance work (#1440), TestAFreeCatalogPriceClearsTheWarningWhenTheListArrives and about nine sibling credit tests in internal/tui3 fail whenever a real OPENROUTER_API_KEY is in the environment, and pass without it.
Repro on santos/dev2 plus #1485's branch:
env -u OPENROUTER_API_KEY go test -count=1 -run TestAFreeCatalogPriceClearsTheWarningWhenTheListArrives ./internal/tui3→ ok- the same test with a real key exported → FAIL
A test run from a shell or agent that has the key set (common on dev machines and in live-check rigs) goes red for reasons unrelated to the change under test. The tests should pin their own key/balance source instead of reading the process environment.
- Lingua principale
- Go
- Stelle
- 115
- Fork
- 14
- Merge medio
- 9h 38m
- PR unite (30g)
- 730
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Agent-Field/CodeAF
-
area:chat bug good first issue sev:papercut
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Agent-Field/CodeAF#1470 ·
-
area:chat bug good first issue sev:papercut
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Agent-Field/CodeAF#1469 ·
-
area:chat bug sev:papercut
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Agent-Field/CodeAF#1468 ·
-
area:tests bug hygiene sev:papercut
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Agent-Field/CodeAF#1460 ·
-
area:chat bug good first issue sev:papercut
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Agent-Field/CodeAF#1454 ·
Tutte le issue di Agent-Field/CodeAF
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
bazel-contrib/rules_go#4726 · 1 commento ·
-
area/auto-scaling area/monitoring area/ops-productivity kind/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Type/Improvement
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
OpenNSW/nsw-srilanka#522 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100