Skip to content

Commit 96e5dfb

Browse files
committed
test(middleware): silence errcheck on AfterEach os.RemoveAll
The new tool_choice parsing tests added a second AfterEach that calls os.RemoveAll(modelDir) without checking the error; errcheck flagged it. Suppress with the standard _ = idiom. The pre-existing AfterEach on the earlier Describe still elides the check the same way it did before - leaving that untouched to keep this commit minimal. Assisted-by: Claude:opus-4-7 [Claude Code] Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent b864231 commit 96e5dfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/http/middleware/request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ var _ = Describe("SetModelAndConfig tool_choice parsing (chat completions)", fun
371371
})
372372

373373
AfterEach(func() {
374-
os.RemoveAll(modelDir)
374+
_ = os.RemoveAll(modelDir)
375375
})
376376

377377
// chatReq wraps a tool_choice JSON fragment in a minimal valid chat-completions

0 commit comments

Comments
 (0)