Skip to content

Commit 571f307

Browse files
committed
make ci pass
1 parent 601e2c8 commit 571f307

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

proxy/config.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,8 @@ func LoadConfigFromReader(r io.Reader) (Config, error) {
161161
}
162162

163163
// the default cmdStop to taskkill /f /t /pid ${PID}
164-
if runtime.GOOS == "windows" {
165-
if strings.TrimSpace(modelConfig.CmdStop) == "" {
166-
modelConfig.CmdStop = "taskkill /f /t /pid ${PID}"
167-
} else {
168-
// debug tihs in windows ci
169-
fmt.Println("XXX: ", modelConfig.CmdStop)
170-
}
164+
if runtime.GOOS == "windows" && strings.TrimSpace(modelConfig.CmdStop) == "" {
165+
modelConfig.CmdStop = "taskkill /f /t /pid ${PID}"
171166
}
172167
}
173168

proxy/config_windows_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestConfig_WindowsCmdStopIsSet(t *testing.T) {
4545
content := `
4646
models:
4747
model1:
48-
cmd: path/to/cmd --arg1 one
48+
cmd: path/to/cmd --arg1 one
4949
`
5050
// Load the config and verify
5151
config, err := LoadConfigFromReader(strings.NewReader(content))

0 commit comments

Comments
 (0)