Skip to content

Commit 72929c8

Browse files
authored
fix(redpanda): closing provider in test after use. (#3539)
Signed-off-by: Marat Abrarov <abrarov@gmail.com>
1 parent b460ba6 commit 72929c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/redpanda/redpanda_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,8 @@ func containerHost(ctx context.Context, opts ...testcontainers.ContainerCustomiz
803803
return "", err
804804
}
805805

806+
defer p.Close()
807+
806808
if p, ok := p.(*testcontainers.DockerProvider); ok {
807809
return p.DaemonHost(ctx)
808810
}

0 commit comments

Comments
 (0)