@@ -62,7 +62,7 @@ public void repeatedSentinelPoolInitialization() {
6262 for (int i = 0 ; i < 20 ; ++i ) {
6363
6464 try (SentineledConnectionProvider provider = new SentineledConnectionProvider (MASTER_NAME ,
65- DefaultJedisClientConfig .builder ().timeoutMillis (1000 ).password ("foobared" ).database (2 ).build (),
65+ DefaultJedisClientConfig .builder ().timeoutMillis (1000 ).password (password ).database (2 ).build (),
6666 sentinels , DefaultJedisClientConfig .builder ().build ())) {
6767
6868 provider .getConnection ().close ();
@@ -160,7 +160,7 @@ public void checkCloseableConnections() throws Exception {
160160
161161 try (RedisSentinelClient jedis = RedisSentinelClient
162162 .builder ().masterName (MASTER_NAME ).clientConfig (DefaultJedisClientConfig .builder ()
163- .timeoutMillis (1000 ).password ("foobared" ).database (2 ).build ())
163+ .timeoutMillis (1000 ).password (password ).database (2 ).build ())
164164 .poolConfig (config ).sentinels (sentinels ).build ()) {
165165 assertSame (SentineledConnectionProvider .class , jedis .provider .getClass ());
166166 jedis .set ("foo" , "bar" );
@@ -176,7 +176,7 @@ public void checkResourceIsCloseable() {
176176
177177 try (RedisSentinelClient jedis = RedisSentinelClient
178178 .builder ().masterName (MASTER_NAME ).clientConfig (DefaultJedisClientConfig .builder ()
179- .timeoutMillis (1000 ).password ("foobared" ).database (2 ).build ())
179+ .timeoutMillis (1000 ).password (password ).database (2 ).build ())
180180 .poolConfig (config ).sentinels (sentinels ).build ()) {
181181
182182 Connection conn = jedis .provider .getConnection ();
@@ -198,7 +198,7 @@ public void checkResourceIsCloseable() {
198198 @ Test
199199 public void testResetInvalidPassword () {
200200 DefaultRedisCredentialsProvider credentialsProvider
201- = new DefaultRedisCredentialsProvider (new DefaultRedisCredentials (null , "foobared" ));
201+ = new DefaultRedisCredentialsProvider (new DefaultRedisCredentials (null , password ));
202202
203203 try (RedisSentinelClient jedis = RedisSentinelClient .builder ().masterName (MASTER_NAME )
204204 .clientConfig (DefaultJedisClientConfig .builder ().timeoutMillis (2000 )
@@ -241,7 +241,7 @@ public void testResetValidPassword() {
241241 fail ("Should not get resource from pool" );
242242 } catch (JedisException e ) { }
243243
244- credentialsProvider .setCredentials (new DefaultRedisCredentials (null , "foobared" ));
244+ credentialsProvider .setCredentials (new DefaultRedisCredentials (null , password ));
245245
246246 try (Connection conn2 = jedis .provider .getConnection ()) {
247247 new Jedis (conn2 ).set ("foo" , "bar" );
0 commit comments