diff --git a/notice_test.go b/notice_test.go index cf676af..4e7d426 100644 --- a/notice_test.go +++ b/notice_test.go @@ -31,9 +31,20 @@ func TestNoticeHandler(t *testing.T) { }) t.Run("malformed ignored", func(t *testing.T) { - // p.receive([]byte("not json")) - // Never: nothing readable from h.Notices() within NegativeTestTimeout - // assert no panic + p, envoy := newMockEnvoy(t) + h := NewNoticeHandler(envoy) + t.Cleanup(h.Close) + + p.receive([]byte("not json")) + + Never(t, func() bool { + select { + case <-h.Notices(): + return true + default: + return false + } + }, "notices channel should remain empty") }) t.Run("observer notified", func(t *testing.T) {