diff --git a/pkg/ccl/changefeedccl/testfeed_test.go b/pkg/ccl/changefeedccl/testfeed_test.go index ab147c4291fa..d542414cbcac 100644 --- a/pkg/ccl/changefeedccl/testfeed_test.go +++ b/pkg/ccl/changefeedccl/testfeed_test.go @@ -1717,6 +1717,7 @@ func (s *fakeKafkaSink) Dial() error { } select { case s.feedCh <- m: + case <-kafka.stopWorkerCh: case <-s.tg.done: } return nil