Skip to content

Commit

Permalink
fixing port conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
lassewesth committed Aug 28, 2017
1 parent 61590a1 commit 684bf16
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions enterprise/cluster/pom.xml
Expand Up @@ -104,5 +104,12 @@
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-com</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Expand Up @@ -57,6 +57,7 @@
import org.neo4j.cluster.protocol.atomicbroadcast.multipaxos.InMemoryAcceptorInstanceStore;
import org.neo4j.cluster.protocol.election.ServerIdElectionCredentialsProvider;
import org.neo4j.cluster.timeout.FixedTimeoutStrategy;
import org.neo4j.com.ports.allocation.PortAuthority;
import org.neo4j.helpers.NamedThreadFactory;
import org.neo4j.helpers.collection.MapUtil;
import org.neo4j.kernel.configuration.Config;
Expand All @@ -66,7 +67,7 @@
import org.neo4j.test.rule.LoggerRule;

@RunWith( value = Parameterized.class )
public class ClusterNetworkTest
public class ClusterNetworkIT
{
@Parameterized.Parameters
public static Collection<Object[]> data()
Expand Down Expand Up @@ -151,7 +152,7 @@ public static Collection<Object[]> data()

private static ExecutorService executor;

public ClusterNetworkTest( int nrOfServers, ClusterTestScript script )
public ClusterNetworkIT( int nrOfServers, ClusterTestScript script )
throws URISyntaxException
{
this.script = script;
Expand All @@ -161,7 +162,7 @@ public ClusterNetworkTest( int nrOfServers, ClusterTestScript script )

for ( int i = 0; i < nrOfServers; i++ )
{
final URI uri = new URI( "neo4j://localhost:800" + (i + 1) );
final URI uri = new URI( "neo4j://localhost:" + PortAuthority.allocatePort() );

Monitors monitors = new Monitors();
NetworkedServerFactory factory = new NetworkedServerFactory( life,
Expand Down

0 comments on commit 684bf16

Please sign in to comment.