Skip to content

Commit

Permalink
use the container host instead of localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantopo committed Aug 7, 2024
1 parent a64cdbf commit 1e51989
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ lazy val `kamon-apache-httpclient` = (project in file("instrumentation/kamon-apa
logbackClassic % "test",
"org.mock-server" % "mockserver-client-java" % "5.13.2" % "test",
"com.dimafeng" %% "testcontainers-scala" % "0.41.0" % "test",
"com.dimafeng" %% "testcontainers-scala-mockserver" % "0.41.0" % "test"
"com.dimafeng" %% "testcontainers-scala-mockserver" % "0.41.4" % "test"
)
).dependsOn(`kamon-core`, `kamon-executors`, `kamon-testkit` % "test")

Expand All @@ -854,7 +854,7 @@ lazy val `kamon-apache-cxf` = (project in file("instrumentation/kamon-apache-cxf
logbackClassic % "test",
"org.mock-server" % "mockserver-client-java" % "5.13.2" % "test",
"com.dimafeng" %% "testcontainers-scala" % "0.41.0" % "test",
"com.dimafeng" %% "testcontainers-scala-mockserver" % "0.41.0" % "test",
"com.dimafeng" %% "testcontainers-scala-mockserver" % "0.41.4" % "test",
"org.apache.cxf" % "cxf-rt-frontend-jaxws" % "3.3.6" % "test",
"org.apache.cxf" % "cxf-rt-transports-http" % "3.3.6" % "test",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ class MessageSpec
}

override val container: MockServerContainer = MockServerContainer()
lazy val clientExpectation: MockServerExpectations = new MockServerExpectations("localhost", container.serverPort)
lazy val clientExpectation: MockServerExpectations =
new MockServerExpectations(container.serverHost, container.serverPort)

override protected def beforeAll(): Unit = {
super.beforeAll()
container.start()
println(s"========> [${container.endpoint}][${container.serverPort}]")
println(s"========> [${container.endpoint}][${container.serverHost}][${container.serverPort}]")
}

override protected def afterAll(): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ class HttpUriRequestSpec
}

override val container: MockServerContainer = MockServerContainer()
lazy val clientExpectation: MockServerExpectations = new MockServerExpectations("localhost", container.serverPort)
lazy val clientExpectation: MockServerExpectations =
new MockServerExpectations(container.serverHost, container.serverPort)

override protected def beforeAll(): Unit = {
super.beforeAll()
Expand Down

0 comments on commit 1e51989

Please sign in to comment.