Skip to content

Commit

Permalink
fix: use function instead
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Wittek <kiview@users.noreply.github.com>
  • Loading branch information
mdelapenya and kiview committed Nov 4, 2022
1 parent f0b85c5 commit f1b5c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/features/networking.md
Expand Up @@ -17,7 +17,7 @@ Note that this exposed port number is from the *perspective of the container*.
This is by design, to avoid port collisions that may arise with locally running software or in between parallel test runs.

Because there is this layer of indirection, it is necessary to ask Testcontainers for the actual mapped port at runtime.
This can be done using the `getMappedPort` method, which takes the original (container) port as an argument:
This can be done using the `MappedPort` function, which takes the original (container) port as an argument:

<!--codeinclude-->
[Retrieving actual ports at runtime](../../docker_test.go) inside_block:mappedPort
Expand Down

0 comments on commit f1b5c09

Please sign in to comment.