fix(e2e): check the realtime-failover websocket close result

errcheck flagged tests/e2e/realtime_ws_test.go:307 as new on this branch
(the localai-proxy realtime failover spec) once the e2e lint scope widened.
Same house style the maintainer bot used for the other close results in
this file (19f6a18b8): wrap in a deferred closure so the error is explicitly
discarded rather than silently ignored.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto committed 2026-09-27 07:42:21 +00:00
1 parent 55f7d5bfdf
commit 5591687d9c
1 file changed
+1 -1
+1 -1
View File
@@ -304,7 +304,7 @@ var _ = Describe("Realtime WebSocket API", Label("Realtime"), func() {
Should(Equal("lp-rt-llm"))
conn := connectWS("rt-lp")
defer conn.Close()
defer func() { _ = conn.Close() }()
Expect(readServerEvent(conn, 30*time.Second)["type"]).To(Equal("session.created"))
initial := drainUntil(conn, "localai.model.failover", 10*time.Second)