Skip to content

Commit 58cc8a8

Browse files
committed
chore(pulsar): using testcontainers.Container.Host instead of direct relying on testcontainers.DockerProvider.
Signed-off-by: Marat Abrarov <abrarov@gmail.com>
1 parent bcc6b65 commit 58cc8a8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

modules/pulsar/pulsar.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,7 @@ func (c *Container) HTTPServiceURL(ctx context.Context) (string, error) {
4343
}
4444

4545
func (c *Container) resolveURL(ctx context.Context, port nat.Port) (string, error) {
46-
provider, err := testcontainers.NewDockerProvider()
47-
if err != nil {
48-
return "", err
49-
}
50-
defer provider.Close()
51-
52-
host, err := provider.DaemonHost(ctx)
46+
host, err := c.Host(ctx)
5347
if err != nil {
5448
return "", err
5549
}

0 commit comments

Comments
 (0)