Closed gaeljw closed 2 years ago
ScalaPactMock.startServer() always starts the server on a random port because of the following line:
ScalaPactMock.startServer()
val scalaPactSettings = ScalaPactSettings( ... port = Option(0), // `0` means "use any available port". ... )
(https://github.com/ITV/scala-pact/blob/main/scalapact-scalatest/src/main/scala/com/itv/scalapact/ScalaPactMock.scala#L41)
It would be nice if the port can be chosen via a method parameter.
Do you have any opinion on this? If I provide a PR for this, are you willing to merge it and release it?
sure go for it
Cool, opened a PR if you want to have a look @jbwheatley
ScalaPactMock.startServer()
always starts the server on a random port because of the following line:(https://github.com/ITV/scala-pact/blob/main/scalapact-scalatest/src/main/scala/com/itv/scalapact/ScalaPactMock.scala#L41)
It would be nice if the port can be chosen via a method parameter.
Do you have any opinion on this? If I provide a PR for this, are you willing to merge it and release it?