@@ -45,13 +45,17 @@ public class Neo4jSettings {
4545
4646 static final int TEST_JVM_ID = Integer .getInteger ("testJvmId" , 0 );
4747
48- private static final int DEFAULT_HTTP_PORT = 7000 ;
49- private static final int DEFAULT_HTTPS_PORT = 8000 ;
50- private static final int DEFAULT_BOLT_PORT = 9000 ;
48+ private static final int DEFAULT_HTTP_PORT = 7001 ;
49+ private static final int DEFAULT_HTTPS_PORT = 8001 ;
50+ private static final int DEFAULT_BOLT_PORT = 9001 ;
51+ private static final int DEFAULT_DISCOVERY_LISTEN_PORT = 5001 ;
52+ private static final int DEFAULT_RAFT_ADVERTISED_PORT = 6001 ;
5153
5254 static final int CURRENT_HTTP_PORT = DEFAULT_HTTP_PORT + TEST_JVM_ID ;
5355 private static final int CURRENT_HTTPS_PORT = DEFAULT_HTTPS_PORT + TEST_JVM_ID ;
5456 static final int CURRENT_BOLT_PORT = DEFAULT_BOLT_PORT + TEST_JVM_ID ;
57+ static final int CURRENT_DISCOVERY_LISTEN_PORT = DEFAULT_DISCOVERY_LISTEN_PORT + TEST_JVM_ID ;
58+ static final int CURRENT_RAFT_ADVERTISED_PORT = DEFAULT_RAFT_ADVERTISED_PORT + TEST_JVM_ID ;
5559
5660 private static final String WINDOWS_SERVICE_NAME = "neo4j-" + TEST_JVM_ID ;
5761
@@ -66,6 +70,14 @@ public class Neo4jSettings {
6670 ":" + CURRENT_HTTPS_PORT ,
6771 "dbms.connector.bolt.listen_address" ,
6872 ":" + CURRENT_BOLT_PORT ,
73+ "dbms.cluster.discovery.initial_members" ,
74+ "localhost:" + CURRENT_DISCOVERY_LISTEN_PORT ,
75+ "server.discovery.listen_address" ,
76+ ":" + CURRENT_DISCOVERY_LISTEN_PORT ,
77+ "cluster.raft_advertised_address" ,
78+ ":" + CURRENT_RAFT_ADVERTISED_PORT ,
79+ "cluster.raft_listen_address" ,
80+ ":" + CURRENT_RAFT_ADVERTISED_PORT ,
6981 "dbms.windows_service_name" ,
7082 WINDOWS_SERVICE_NAME ,
7183 DATA_DIR ,
@@ -76,7 +88,7 @@ public class Neo4jSettings {
7688 DEFAULT_BOLT_TLS_LEVEL ,
7789 LISTEN_ADDR ,
7890 IPV6_ENABLED_ADDR ),
79- Collections .< String > emptySet ());
91+ Collections .emptySet ());
8092
8193 public enum BoltTlsLevel {
8294 OPTIONAL ,
0 commit comments