test: NoticeHandler close cleans up

This commit is contained in:
Jay
2026-06-03 15:20:37 -04:00
parent cf4a2d380a
commit a3f2c9b2d8
+7 -2
View File
@@ -62,7 +62,12 @@ func TestNoticeHandler(t *testing.T) {
}) })
t.Run("close cleans up", func(t *testing.T) { t.Run("close cleans up", func(t *testing.T) {
// h.Close() _, envoy := newMockEnvoy(t)
// assert <-h.Notices() returns zero Notice, ok == false h := NewNoticeHandler(envoy)
h.Close()
_, ok := <-h.Notices()
assert.False(t, ok, "notices channel should be closed")
}) })
} }