From 0b04243fdfc8caeb767ac8340aa86b0cf8daff47 Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Fri, 26 Jul 2024 14:03:19 +0600 Subject: [PATCH] [TEMPORARY] [TEST] Disable FT.CONFIG tests (#3907) Disable FT.CONFIG tests --- .../modules/RedisModulesPipelineTest.java | 18 ++++++++++-------- .../jedis/modules/search/SearchConfigTest.java | 4 ++++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/test/java/redis/clients/jedis/modules/RedisModulesPipelineTest.java b/src/test/java/redis/clients/jedis/modules/RedisModulesPipelineTest.java index db0ba8223c..4c9ad92f85 100644 --- a/src/test/java/redis/clients/jedis/modules/RedisModulesPipelineTest.java +++ b/src/test/java/redis/clients/jedis/modules/RedisModulesPipelineTest.java @@ -66,10 +66,11 @@ public void search() { Response explain = p.ftExplain(index, new Query("@title:title_val")); Response> explainCLI = p.ftExplainCLI(index, new Query("@title:title_val")); Response> info = p.ftInfo(index); - Response configSet = p.ftConfigSet("timeout", "100"); - Response> configGet = p.ftConfigGet("*"); - Response configSetIndex = p.ftConfigSet(index, "timeout", "100"); - Response> configGetIndex = p.ftConfigGet(index, "*"); +// // @org.junit.Ignore +// Response configSet = p.ftConfigSet("timeout", "100"); +// Response> configGet = p.ftConfigGet("*"); +// Response configSetIndex = p.ftConfigSet(index, "timeout", "100"); +// Response> configGetIndex = p.ftConfigGet(index, "*"); Response synUpdate = p.ftSynUpdate(index, "foo", "bar"); Response>> synDump = p.ftSynDump(index); @@ -85,10 +86,11 @@ public void search() { assertNotNull(explain.get()); assertNotNull(explainCLI.get().get(0)); assertEquals(index, info.get().get("index_name")); - assertEquals("OK", configSet.get()); - assertEquals("100", configGet.get().get("TIMEOUT")); - assertEquals("OK", configSetIndex.get()); - assertEquals("100", configGetIndex.get().get("TIMEOUT")); +// // @org.junit.Ignore +// assertEquals("OK", configSet.get()); +// assertEquals("100", configGet.get().get("TIMEOUT")); +// assertEquals("OK", configSetIndex.get()); +// assertEquals("100", configGetIndex.get().get("TIMEOUT")); assertEquals("OK", synUpdate.get()); Map> expected = new HashMap<>(); expected.put("bar", Collections.singletonList("foo")); diff --git a/src/test/java/redis/clients/jedis/modules/search/SearchConfigTest.java b/src/test/java/redis/clients/jedis/modules/search/SearchConfigTest.java index 4e93303a4a..2f14e58be9 100644 --- a/src/test/java/redis/clients/jedis/modules/search/SearchConfigTest.java +++ b/src/test/java/redis/clients/jedis/modules/search/SearchConfigTest.java @@ -6,6 +6,7 @@ import java.util.Collections; import java.util.Map; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @@ -30,6 +31,7 @@ public SearchConfigTest(RedisProtocol protocol) { super(protocol); } + @Ignore @Test public void config() { Map map = client.ftConfigGet("TIMEOUT"); @@ -42,6 +44,7 @@ public void config() { } } + @Ignore @Test public void configOnTimeout() { // confirm default @@ -57,6 +60,7 @@ public void configOnTimeout() { } } + @Ignore @Test public void dialectConfig() { // confirm default