mirror of
https://github.com/gin-gonic/gin.git
synced 2026-04-29 23:23:18 +08:00
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:
parent
175d5e8e12
commit
62f18efb5c
@ -319,8 +319,7 @@ type mockCloseNotifier struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *mockCloseNotifier) CloseNotify() <-chan bool {
|
func (m *mockCloseNotifier) CloseNotify() <-chan bool {
|
||||||
ch := make(chan bool, 1)
|
return make(chan bool)
|
||||||
return ch
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCloseNotifyWithCloseNotifier(t *testing.T) {
|
func TestCloseNotifyWithCloseNotifier(t *testing.T) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user