test(gateway): fix err shadow in status tests
This commit is contained in:
parent
15fca5c539
commit
cda8102625
1 changed files with 4 additions and 2 deletions
|
|
@ -402,7 +402,8 @@ func TestGatewayStatusRunningSkipsRuntimeProbeForStartCondition(t *testing.T) {
|
|||
APIBase: "http://127.0.0.1:8000/v1",
|
||||
}}
|
||||
cfg.Agents.Defaults.ModelName = "local-vllm"
|
||||
if err := config.SaveConfig(configPath, cfg); err != nil {
|
||||
err = config.SaveConfig(configPath, cfg)
|
||||
if err != nil {
|
||||
t.Fatalf("SaveConfig() error = %v", err)
|
||||
}
|
||||
|
||||
|
|
@ -710,7 +711,8 @@ func TestGatewayStatusRunningRestartRequiredUsesRuntimeProbeForNewLocalDefault(t
|
|||
}
|
||||
cfg.ModelList[0].SetAPIKey("remote-key")
|
||||
cfg.Agents.Defaults.ModelName = "remote-openai"
|
||||
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