From 57451d7ffe0e84292759a5995e17c3fac626edff Mon Sep 17 00:00:00 2001 From: Stefanos Stefanou Date: Mon, 11 Mar 2024 15:25:51 +0000 Subject: [PATCH] typos on usage.md There was a nginx container reference called 'mySqlContainer'. This may confuse people. --- docs/src/main/tut/usage.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/main/tut/usage.md b/docs/src/main/tut/usage.md index 947a2f48..852eae96 100644 --- a/docs/src/main/tut/usage.md +++ b/docs/src/main/tut/usage.md @@ -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 @@ -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