Skip to content

Commit

Permalink
fixed issue with multiple specs all trying to use same Akka.Remote po…
Browse files Browse the repository at this point in the history
…rt at the same time (#3817)

* part of #3786 - fixed issue with multiple specs all trying to use same Akka.Remote port at the same time

* updated specs to use Collections XUnit attribute instead

* use port 0 in all specs by default
  • Loading branch information
Aaronontheweb authored Jun 26, 2019
1 parent ea0d054 commit dbc25db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

namespace Akka.Remote.Tests
{

public class RemoteConsistentHashingRouterSpec : AkkaSpec
{

Expand Down
1 change: 0 additions & 1 deletion src/core/Akka.Remote.Tests/Transport/AkkaProtocolSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

namespace Akka.Remote.Tests.Transport
{

public class AkkaProtocolSpec : AkkaSpec
{
#region Setup / Config
Expand Down
4 changes: 3 additions & 1 deletion src/core/Akka.Tests.Shared.Internals/AkkaSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit dbc25db

Please sign in to comment.