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.
This commit is contained in:
Iliyas Shamshiden 2026-09-22 14:21:57 +05:00
parent 049d789e48
commit f803925709

View File

@ -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),
}
}