* Fix format error

This commit is contained in:
lxowalle 2026-02-27 16:56:59 +08:00
parent f3ca6b5153
commit b461447725
2 changed files with 6 additions and 6 deletions

View file

@ -210,8 +210,8 @@ func TestDefaultConfig_WorkspacePath(t *testing.T) {
func TestDefaultConfig_Model(t *testing.T) { func TestDefaultConfig_Model(t *testing.T) {
cfg := DefaultConfig() cfg := DefaultConfig()
if cfg.Agents.Defaults.Model == "" { if cfg.Agents.Defaults.Model != "" {
t.Error("Model should not be empty") t.Error("Model should be empty")
} }
} }
@ -331,8 +331,8 @@ func TestConfig_Complete(t *testing.T) {
if cfg.Agents.Defaults.Workspace == "" { if cfg.Agents.Defaults.Workspace == "" {
t.Error("Workspace should not be empty") t.Error("Workspace should not be empty")
} }
if cfg.Agents.Defaults.Model == "" { if cfg.Agents.Defaults.Model != "" {
t.Error("Model should not be empty") t.Error("Model should be empty")
} }
if cfg.Agents.Defaults.Temperature != nil { if cfg.Agents.Defaults.Temperature != nil {
t.Error("Temperature should be nil when not provided") t.Error("Temperature should be nil when not provided")

View file

@ -296,8 +296,8 @@ func TestConvertConfig(t *testing.T) {
if len(warnings) != 0 { if len(warnings) != 0 {
t.Errorf("expected no warnings, got %v", warnings) t.Errorf("expected no warnings, got %v", warnings)
} }
if cfg.Agents.Defaults.Model != "glm-4.7" { if cfg.Agents.Defaults.Model != "" {
t.Errorf("default model should be glm-4.7, got %q", cfg.Agents.Defaults.Model) t.Errorf("default model should be nil, got %q", cfg.Agents.Defaults.Model)
} }
}) })
} }