diff --git a/src/core/Akka.Remote.Tests/RemoteConsistentHashingRouterSpec.cs b/src/core/Akka.Remote.Tests/RemoteConsistentHashingRouterSpec.cs index d0a5bdbe9a5..79b6757da1a 100644 --- a/src/core/Akka.Remote.Tests/RemoteConsistentHashingRouterSpec.cs +++ b/src/core/Akka.Remote.Tests/RemoteConsistentHashingRouterSpec.cs @@ -15,7 +15,6 @@ namespace Akka.Remote.Tests { - public class RemoteConsistentHashingRouterSpec : AkkaSpec { diff --git a/src/core/Akka.Remote.Tests/Transport/AkkaProtocolSpec.cs b/src/core/Akka.Remote.Tests/Transport/AkkaProtocolSpec.cs index 9c33972cced..5f54872686a 100644 --- a/src/core/Akka.Remote.Tests/Transport/AkkaProtocolSpec.cs +++ b/src/core/Akka.Remote.Tests/Transport/AkkaProtocolSpec.cs @@ -23,7 +23,6 @@ namespace Akka.Remote.Tests.Transport { - public class AkkaProtocolSpec : AkkaSpec { #region Setup / Config diff --git a/src/core/Akka.Tests.Shared.Internals/AkkaSpec.cs b/src/core/Akka.Tests.Shared.Internals/AkkaSpec.cs index ecfad51e492..a1e1bd15c8c 100644 --- a/src/core/Akka.Tests.Shared.Internals/AkkaSpec.cs +++ b/src/core/Akka.Tests.Shared.Internals/AkkaSpec.cs @@ -42,7 +42,9 @@ public abstract class AkkaSpec : Xunit2.TestKit //AkkaSpec is not part of Tes # } #} } - }"); + } + # use random ports to avoid race conditions with binding contention + akka.remote.dot-netty.tcp.port = 0"); private static int _systemNumber = 0;