From f80392570921747ba259b0df3fd4a147e6c85515 Mon Sep 17 00:00:00 2001 From: Iliyas Shamshiden Date: Tue, 22 Sep 2026 14:21:57 +0500 Subject: [PATCH] fix(test): remove now-unused CloseNotify test shim Stream no longer reads TestResponseRecorder.CloseNotify, so the closeChannel field and its CloseNotify/closeClient methods were dead code, tripping the unused linter. --- context_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/context_test.go b/context_test.go index 66fce727..0de7b5f7 100644 --- a/context_test.go +++ b/context_test.go @@ -3246,21 +3246,11 @@ func TestContextRenderDataFromReaderNoHeaders(t *testing.T) { type TestResponseRecorder struct { *httptest.ResponseRecorder - closeChannel chan bool -} - -func (r *TestResponseRecorder) CloseNotify() <-chan bool { - return r.closeChannel -} - -func (r *TestResponseRecorder) closeClient() { - r.closeChannel <- true } func CreateTestResponseRecorder() *TestResponseRecorder { return &TestResponseRecorder{ httptest.NewRecorder(), - make(chan bool, 1), } }