xonecas.io
60255
Zn

Zoea-Nova / commit 0706b3e

test: update test to use correct API key name (opencode_zen)

xonecas2026-02-07 0706b3e52dd20ea34d0edcf1654807e19f20cd4a parent 31e5b3f

1 file changed

internal/integration/zen_nano_failure_test.go+2−2
@@ -35,7 +35,7 @@ func TestZenNanoWithProductionConfig(t *testing.T) {
3535 }
3636
3737 // Step 4: Check API key
38- apiKey := creds.GetAPIKey("opencode")
38+ apiKey := creds.GetAPIKey("opencode_zen")
3939 t.Logf("API key exists: %v (length: %d)", apiKey != "", len(apiKey))
4040
4141 // Step 5: Run EXACT initProviders code from main.go
@@ -51,7 +51,7 @@ func TestZenNanoWithProductionConfig(t *testing.T) {
5151 registeredCount++
5252 t.Logf("Registered Ollama: %s", name)
5353 } else if provCfg.Endpoint == "https://opencode.ai/zen/v1" {
54- apiKey := creds.GetAPIKey("opencode")
54+ apiKey := creds.GetAPIKey("opencode_zen")
5555 if apiKey != "" {
5656 factory := provider.NewOpenCodeFactory(provCfg.Endpoint, apiKey, provCfg.RateLimit, provCfg.RateBurst)
5757 registry.RegisterFactory(name, factory)