Skip to content

Commit

Permalink
fix: add missing close for kafka client
Browse files Browse the repository at this point in the history
Signed-off-by: Ladislav Macoun <ladislavmacoun@gmail.com>
  • Loading branch information
ladislavmacoun committed Aug 2, 2023
1 parent 6286fa8 commit b3ecfa1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/redpanda/redpanda_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func TestRedpanda(t *testing.T) {
kgo.SeedBrokers(seedBroker),
)
require.NoError(t, err)
defer kafkaCl.Close()

kafkaAdmCl := kadm.NewClient(kafkaCl)
metadata, err := kafkaAdmCl.Metadata(ctx)
Expand Down

0 comments on commit b3ecfa1

Please sign in to comment.