From b193839f7bd7e99d5f648d8136e355b770969851 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 13 Jan 2020 09:28:14 +0100 Subject: [PATCH] Polishing #1205 Fix tests. --- .../java/io/lettuce/core/RedisURIBuilderUnitTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/io/lettuce/core/RedisURIBuilderUnitTests.java b/src/test/java/io/lettuce/core/RedisURIBuilderUnitTests.java index 9275104cc8..268cd2201e 100644 --- a/src/test/java/io/lettuce/core/RedisURIBuilderUnitTests.java +++ b/src/test/java/io/lettuce/core/RedisURIBuilderUnitTests.java @@ -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"); @@ -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"); @@ -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(); } @@ -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(); } }