summaryrefslogtreecommitdiff
path: root/internal/hexaicli/cache_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/hexaicli/cache_test.go')
-rw-r--r--internal/hexaicli/cache_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/hexaicli/cache_test.go b/internal/hexaicli/cache_test.go
index 5f00e7b..c9b83c6 100644
--- a/internal/hexaicli/cache_test.go
+++ b/internal/hexaicli/cache_test.go
@@ -75,6 +75,9 @@ func TestRun_UsesCachedResponseWithoutClientCall(t *testing.T) {
t.Chdir(t.TempDir())
t.Setenv("XDG_CONFIG_HOME", t.TempDir())
t.Setenv("XDG_CACHE_HOME", t.TempDir())
+ // This test asserts an "openai/gpt-4.1" cache-hit label, so pin the provider
+ // (the in-code default switched to ollama when no config is present).
+ t.Setenv("HEXAI_PROVIDER", "openai")
oldNew := newClientFromApp
defer func() { newClientFromApp = oldNew }()