From bb864d7170a8451bb01b255a5da44ee78a110852 Mon Sep 17 00:00:00 2001 From: Dominic Evans Date: Mon, 7 Aug 2023 18:37:23 +0100 Subject: [PATCH] fix(test): shutdown MockBroker Signed-off-by: Dominic Evans --- consumer_group_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consumer_group_test.go b/consumer_group_test.go index 2b53da4aa..2e9d180e9 100644 --- a/consumer_group_test.go +++ b/consumer_group_test.go @@ -40,6 +40,7 @@ func TestConsumerGroupNewSessionDuringOffsetLoad(t *testing.T) { config.Consumer.Offsets.AutoCommit.Enable = false broker0 := NewMockBroker(t, 0) + defer broker0.Close() broker0.SetHandlerByMap(map[string]MockResponse{ "MetadataRequest": NewMockMetadataResponse(t).