Skip to content

Commit

Permalink
Polishing #1205
Browse files Browse the repository at this point in the history
Fix tests.
  • Loading branch information
mp911de committed Jan 13, 2020
1 parent 0289f02 commit b193839
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/io/lettuce/core/RedisURIBuilderUnitTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void redisSentinelFromUrl() {

assertThat(result.getSentinels()).hasSize(1);
assertThat(result.getHost()).isNull();
assertThat(result.getPort()).isEqualTo(0);
assertThat(result.getPort()).isEqualTo(RedisURI.DEFAULT_REDIS_PORT);
assertThat(result.getPassword()).isEqualTo("password".toCharArray());
assertThat(result.getSentinelMasterId()).isEqualTo("master");
assertThat(result.toString()).contains("master");
Expand All @@ -159,7 +159,7 @@ void redisSentinelFromUrl() {

assertThat(result.getSentinels()).hasSize(3);
assertThat(result.getHost()).isNull();
assertThat(result.getPort()).isEqualTo(0);
assertThat(result.getPort()).isEqualTo(RedisURI.DEFAULT_REDIS_PORT);
assertThat(result.getPassword()).isEqualTo("password".toCharArray());
assertThat(result.getSentinelMasterId()).isEqualTo("master");

Expand Down Expand Up @@ -253,7 +253,7 @@ void redisSocket() throws IOException {
assertThat(result.getSentinels()).isEmpty();
assertThat(result.getPassword()).isNull();
assertThat(result.getHost()).isNull();
assertThat(result.getPort()).isEqualTo(0);
assertThat(result.getPort()).isEqualTo(RedisURI.DEFAULT_REDIS_PORT);
assertThat(result.isSsl()).isFalse();
}

Expand All @@ -267,7 +267,7 @@ void redisSocketWithPassword() throws IOException {
assertThat(result.getSentinels()).isEmpty();
assertThat(result.getPassword()).isEqualTo("password".toCharArray());
assertThat(result.getHost()).isNull();
assertThat(result.getPort()).isEqualTo(0);
assertThat(result.getPort()).isEqualTo(RedisURI.DEFAULT_REDIS_PORT);
assertThat(result.isSsl()).isFalse();
}
}

0 comments on commit b193839

Please sign in to comment.