From 5591687d9ca9203c9904ee7e7269adea5049acb3 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sun, 27 Sep 2026 02:55:58 +0000 Subject: [PATCH] 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 --- tests/e2e/realtime_ws_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/realtime_ws_test.go b/tests/e2e/realtime_ws_test.go index 5556a608f..90089fca7 100644 --- a/tests/e2e/realtime_ws_test.go +++ b/tests/e2e/realtime_ws_test.go @@ -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)