From 282cdfc9693c6c77ffeb6fa88d1bd51eb26555b3 Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Sun, 19 May 2024 13:47:37 +0600 Subject: [PATCH 1/4] Check Gears test fail --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1800f00d7e..6a707e8df4 100644 --- a/Makefile +++ b/Makefile @@ -503,7 +503,7 @@ stop: test: | start mvn-test stop mvn-test: - mvn -Dtest=${SKIP_SSL}${TEST} clean compile test + mvn -Dtest=GearsTest clean compile test package: | start mvn-package stop From 29a16812a73ed86d548406bd5ad9324c1881d210 Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Sun, 19 May 2024 14:19:57 +0600 Subject: [PATCH 2/4] Check modules package --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6a707e8df4..7c963d1e03 100644 --- a/Makefile +++ b/Makefile @@ -503,7 +503,7 @@ stop: test: | start mvn-test stop mvn-test: - mvn -Dtest=GearsTest clean compile test + mvn -Dtest="redis.clients.jedis.modules.**" clean compile test package: | start mvn-package stop From 6e0e5a8a30dd89e57268442b353b7ba7fbdbd9bb Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Sun, 19 May 2024 14:47:14 +0600 Subject: [PATCH 3/4] Revert all changes in Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7c963d1e03..1800f00d7e 100644 --- a/Makefile +++ b/Makefile @@ -503,7 +503,7 @@ stop: test: | start mvn-test stop mvn-test: - mvn -Dtest="redis.clients.jedis.modules.**" clean compile test + mvn -Dtest=${SKIP_SSL}${TEST} clean compile test package: | start mvn-package stop From bbf15da078b5542bb4e882a81f44dc29e75e851d Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Sun, 19 May 2024 14:47:37 +0600 Subject: [PATCH 4/4] Cleanup Function libraries --- ...ommandObjectsTriggersAndFunctionsCommandsTest.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/test/java/redis/clients/jedis/commands/commandobjects/CommandObjectsTriggersAndFunctionsCommandsTest.java b/src/test/java/redis/clients/jedis/commands/commandobjects/CommandObjectsTriggersAndFunctionsCommandsTest.java index 31528e8092..6403f57404 100644 --- a/src/test/java/redis/clients/jedis/commands/commandobjects/CommandObjectsTriggersAndFunctionsCommandsTest.java +++ b/src/test/java/redis/clients/jedis/commands/commandobjects/CommandObjectsTriggersAndFunctionsCommandsTest.java @@ -7,9 +7,11 @@ import java.util.ArrayList; import java.util.List; - +import org.junit.After; import org.junit.Test; + import redis.clients.jedis.RedisProtocol; +import redis.clients.jedis.exceptions.JedisDataException; import redis.clients.jedis.gears.TFunctionListParams; import redis.clients.jedis.gears.TFunctionLoadParams; import redis.clients.jedis.gears.resps.GearsLibraryInfo; @@ -23,6 +25,13 @@ public CommandObjectsTriggersAndFunctionsCommandsTest(RedisProtocol protocol) { super(protocol); } + @After + public void tearDown() throws Exception { + try { + exec(commandObjects.tFunctionDelete("lib")); + } catch (JedisDataException de) { } + } + @Test public void testTFunctionLoadAndCall() { String libraryCode = "#!js api_version=1.0 name=lib\n" +