Skip to content

Commit

Permalink
use the appropriate container host when using mockserver
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantopo committed Aug 7, 2024
1 parent 3001eb7 commit 717a274
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class MessageSpec
}

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

override protected def beforeAll(): Unit = {
super.beforeAll()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ class HttpRequestSpec
}

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

override protected def beforeAll(): Unit = {
super.beforeAll()
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.container.getHost, container.serverPort)

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

0 comments on commit 717a274

Please sign in to comment.