Skip to content

Commit

Permalink
Merge pull request #277 from noReasonException/patch-1
Browse files Browse the repository at this point in the history
fix: typo on usage.md
  • Loading branch information
dimafeng authored Mar 11, 2024
2 parents 5ba01b2 + 57451d7 commit 43d5537
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/main/tut/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ class GenericContainerSpec extends AnyFlatSpec with TestContainerForAll {
)

"GenericContainer" should "start nginx and expose 80 port" in {
withContainers { mysqlContainer =>
withContainers { nginxContainer =>
assert(
Source
.fromInputStream(
new URL(
s"http://${mysqlContainer.containerIpAddress}:${mysqlContainer.mappedPort(80)}/"
s"http://${nginxContainer.containerIpAddress}:${nginxContainer.mappedPort(80)}/"
).openConnection().getInputStream
)
.mkString
Expand Down Expand Up @@ -92,12 +92,12 @@ class GenericContainerSpec extends FunSuite with TestContainerForAll {
)

test("GenericContainer should start nginx and expose 80 port ") {
withContainers { mysqlContainer =>
withContainers { nginxContainer =>
assert(
Source
.fromInputStream(
new URL(
s"http://${mysqlContainer.containerIpAddress}:${mysqlContainer.mappedPort(80)}/"
s"http://${nginxContainer.containerIpAddress}:${nginxContainer.mappedPort(80)}/"
).openConnection().getInputStream
)
.mkString
Expand Down

0 comments on commit 43d5537

Please sign in to comment.