From 62f18efb5c80f27a15e83684d317f64c13b9a97e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Apr 2026 20:53:35 +0000 Subject: [PATCH] test: use unbuffered channel in mockCloseNotifier Agent-Logs-Url: https://github.com/odlev/gin/sessions/a5300762-e9da-4790-8669-fd5200269ead Co-authored-by: odlev <65655276+odlev@users.noreply.github.com> --- response_writer_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/response_writer_test.go b/response_writer_test.go index 85c1bbbb..02dbe4dd 100644 --- a/response_writer_test.go +++ b/response_writer_test.go @@ -319,8 +319,7 @@ type mockCloseNotifier struct { } func (m *mockCloseNotifier) CloseNotify() <-chan bool { - ch := make(chan bool, 1) - return ch + return make(chan bool) } func TestCloseNotifyWithCloseNotifier(t *testing.T) {