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>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-07 20:53:35 +00:00 committed by GitHub
parent 175d5e8e12
commit 62f18efb5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {