fix: use PortEndpoint() in a few more modules by ash2k · Pull Request #3207 · testcontainers/testcontainers-go

@ash2k

What does this PR do?

More cleanup.

Why is it important?

Related issues

@netlify

stevenh

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, just one question.

return "", err
}
return fmt.Sprintf("neo4j://%s:%d", host, mappedPort.Int()), nil
return c.PortEndpoint(ctx, "7687/tcp", "neo4j")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: should this use the defaultBoltPort constant?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the constants. 👍

@ash2k

mdelapenya

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ash2k ash2k deleted the use-mapped-port3 branch

June 16, 2025 11:03