test: fix actual govet shadow site in update model test
This commit is contained in:
parent
635e6255ba
commit
2a59176612
1 changed files with 3 additions and 3 deletions
|
|
@ -90,8 +90,7 @@ func TestHandleListModels_ConfiguredStatusUsesRuntimeProbesForLocalModels(t *tes
|
|||
},
|
||||
}
|
||||
cfg.Agents.Defaults.ModelName = "openai-oauth"
|
||||
err = config.SaveConfig(configPath, cfg)
|
||||
if err != nil {
|
||||
if err := config.SaveConfig(configPath, cfg); err != nil {
|
||||
t.Fatalf("SaveConfig() error = %v", err)
|
||||
}
|
||||
|
||||
|
|
@ -408,7 +407,8 @@ func TestHandleUpdateModel_PreservesAndClearsExtraHeaders(t *testing.T) {
|
|||
ExtraHeaders: map[string]string{"X-API-Key": "secondary-key"},
|
||||
},
|
||||
}
|
||||
if err := config.SaveConfig(configPath, cfg); err != nil {
|
||||
err = config.SaveConfig(configPath, cfg)
|
||||
if err != nil {
|
||||
t.Fatalf("SaveConfig() error = %v", err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue