Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Polishing #227
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Jan 11, 2020
1 parent a4c333e commit 534b1ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -3,6 +3,8 @@ PATH := ./work/redis-git/src:${PATH}
define REDIS1_CONF
daemonize yes
port 6479
bind 0.0.0.0
protected-mode no
pidfile work/redis1-6479.pid
logfile work/redis1-6479.log
save ""
Expand All @@ -13,6 +15,8 @@ endef
# SENTINELS
define REDIS_SENTINEL1
port 26379
bind 0.0.0.0
protected-mode no
daemonize yes
sentinel monitor mymaster 127.0.0.1 6479 1
sentinel down-after-milliseconds mymaster 2000
Expand Down
Expand Up @@ -33,7 +33,7 @@ class GelfLogHandlerRedisIntegrationTests {
private Jedis jedis;

@BeforeEach
void before() throws Exception {
void before() {
// enable the test with -Dtest.withRedis=true
assumeTrue(Sockets.isOpen("localhost", 6479));

Expand Down Expand Up @@ -63,7 +63,6 @@ void testStandalone() throws Exception {
assertThat(map.get("full_message")).isEqualTo(expectedMessage);
assertThat(map.get("short_message")).isEqualTo(expectedMessage);
assertThat(map.get("fieldName1")).isEqualTo("fieldValue1");

}

@Test
Expand All @@ -87,7 +86,6 @@ void testSentinel() throws Exception {
assertThat(map.get("full_message")).isEqualTo(expectedMessage);
assertThat(map.get("short_message")).isEqualTo(expectedMessage);
assertThat(map.get("fieldName1")).isEqualTo("fieldValue1");

}

@Test
Expand Down Expand Up @@ -120,7 +118,7 @@ void testRedisWithPortUri() throws Exception {
}

@Test
void uriWithoutHost() throws Exception {
void uriWithoutHost() {

String uri = "redis:///#list";

Expand All @@ -134,11 +132,10 @@ public void execute() throws Throwable {
new RedisGelfSenderProvider().create(configuration);
}
});

}

@Test
void uriWithoutFragment() throws Exception {
void uriWithoutFragment() {

String uri = "redis://host/";

Expand All @@ -155,7 +152,7 @@ public void execute() throws Throwable {
}

@Test
void uriWithoutFragment2() throws Exception {
void uriWithoutFragment2() {

String uri = "redis://host";

Expand All @@ -172,7 +169,7 @@ public void execute() throws Throwable {
}

@Test
void uriWithoutFragment3() throws Exception {
void uriWithoutFragment3() {

String uri = "redis://host#";

Expand Down

0 comments on commit 534b1ad

Please sign in to comment.