File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
main/java/redis/clients/jedis
test/java/redis/clients/jedis Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public final class Protocol {
23
23
24
24
public static final String DEFAULT_HOST = "127.0.0.1" ;
25
25
public static final int DEFAULT_PORT = 6379 ;
26
- public static final int DEFAULT_SENTINEL_PORT = 26378 ;
26
+ public static final int DEFAULT_SENTINEL_PORT = 26379 ;
27
27
public static final int DEFAULT_TIMEOUT = 2000 ;
28
28
public static final int DEFAULT_DATABASE = 0 ;
29
29
public static final int CLUSTER_HASHSLOTS = 16384 ;
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ public final class HostAndPorts {
21
21
}
22
22
23
23
sentinelHostAndPortList .add (new HostAndPort ("localhost" , Protocol .DEFAULT_SENTINEL_PORT ));
24
- sentinelHostAndPortList .add (new HostAndPort ("10.148.17.43 " , Protocol .DEFAULT_SENTINEL_PORT + 1 ));
24
+ sentinelHostAndPortList .add (new HostAndPort ("localhost " , Protocol .DEFAULT_SENTINEL_PORT + 1 ));
25
25
sentinelHostAndPortList .add (new HostAndPort ("localhost" , Protocol .DEFAULT_SENTINEL_PORT + 2 ));
26
- sentinelHostAndPortList .add (new HostAndPort ("10.148.17.43 " , Protocol .DEFAULT_SENTINEL_PORT + 3 ));
26
+ sentinelHostAndPortList .add (new HostAndPort ("localhost " , Protocol .DEFAULT_SENTINEL_PORT + 3 ));
27
27
sentinelHostAndPortList .add (new HostAndPort ("localhost" , Protocol .DEFAULT_SENTINEL_PORT + 4 ));
28
28
29
29
clusterHostAndPortList .add (new HostAndPort ("localhost" , 7379 ));
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ public class SentineledConnectionProviderTest {
33
33
protected static final HostAndPort sentinel2 = HostAndPorts .getSentinelServers ().get (3 );
34
34
35
35
protected Set <HostAndPort > sentinels = new HashSet <>();
36
- // protected String password = "foobared";
37
- protected String password = "0a2eb141353cf115" ;
36
+ protected String password = "foobared" ;
38
37
39
38
@ BeforeEach
40
39
public void setUp () throws Exception {
You can’t perform that action at this time.
0 commit comments