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