mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-29 17:44:30 -04:00
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:
1 parent
55f7d5bfdf
commit
5591687d9c
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user