diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-06 23:24:25 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-06 23:24:25 +0200 |
| commit | 5d3e46e9b13de28c069c96c8fc1d445234ae0a2c (patch) | |
| tree | 38ad18ad7de669adcd01d5de7c4472aefd238bf1 /internal/runtimeconfig/store_test.go | |
| parent | 9dc5fc419df4e5ef80594918742b5462d5a4ad4b (diff) | |
| parent | c66b34a77006cd9453f7739cd8dbe500da8da85d (diff) | |
Merge branch 'main' of codeberg.org:snonux/hexai
Diffstat (limited to 'internal/runtimeconfig/store_test.go')
| -rw-r--r-- | internal/runtimeconfig/store_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/runtimeconfig/store_test.go b/internal/runtimeconfig/store_test.go index 0a0183a..168d2cd 100644 --- a/internal/runtimeconfig/store_test.go +++ b/internal/runtimeconfig/store_test.go @@ -99,7 +99,7 @@ func TestStoreReloadLogsSummary(t *testing.T) { func TestDiff_SurfaceModel(t *testing.T) { oldCfg := appconfig.App{CompletionConfigs: []appconfig.SurfaceConfig{{Provider: "openai", Model: "gpt-4o"}}} - newCfg := appconfig.App{CompletionConfigs: []appconfig.SurfaceConfig{{Provider: "copilot", Model: "gpt-4.1"}}} + newCfg := appconfig.App{CompletionConfigs: []appconfig.SurfaceConfig{{Provider: "anthropic", Model: "claude-3-5-sonnet"}}} changes := Diff(oldCfg, newCfg) if len(changes) == 0 { t.Fatalf("expected diff entries, got none") @@ -107,7 +107,7 @@ func TestDiff_SurfaceModel(t *testing.T) { found := false for _, ch := range changes { if ch.Key == "completion_configs" { - if !strings.Contains(ch.Old, "gpt-4o") || !strings.Contains(ch.New, "gpt-4.1") { + if !strings.Contains(ch.Old, "gpt-4o") || !strings.Contains(ch.New, "claude-3-5-sonnet") { t.Fatalf("unexpected diff contents: %+v", ch) } found = true |
