reserve UPD or TPC ports according to artery config
This commit is contained in:
parent
335d205782
commit
343632fc01
1 changed files with 7 additions and 1 deletions
|
|
@ -17,7 +17,13 @@ class ArteryFailedToBindSpec extends AnyWordSpec with Matchers {
|
|||
|
||||
"an ActorSystem" must {
|
||||
"not start if port is taken" in {
|
||||
val port = SocketUtil.temporaryLocalPort(true)
|
||||
|
||||
// this test is tweaked in Jenkins CI by passing -Dakka.remote.artery.transport
|
||||
// therefore we must decide whether to use UDP or not based on the runtime config
|
||||
val arterySettings = ArterySettings(ConfigFactory.load().getConfig("akka.remote.artery"))
|
||||
val useUdp = arterySettings.Transport == ArterySettings.AeronUpd
|
||||
val port = SocketUtil.temporaryLocalPort(useUdp)
|
||||
|
||||
val config = ConfigFactory.parseString(s"""
|
||||
|akka {
|
||||
| actor {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue