diff --git a/src/test/java/io/redis/examples/QueryEmExample.java b/src/test/java/io/redis/examples/QueryEmExample.java index b0eada7656..e7f8cc99c9 100644 --- a/src/test/java/io/redis/examples/QueryEmExample.java +++ b/src/test/java/io/redis/examples/QueryEmExample.java @@ -25,12 +25,12 @@ public class QueryEmExample { @Test public void run() { - UnifiedJedis jedis = new UnifiedJedis("redis://localhost:6379") + UnifiedJedis jedis = new UnifiedJedis("redis://localhost:6379"); //REMOVE_START // Clear any keys here before using them in tests. - jedis.ftDropIndex("idx:bicycle"); - jedis.ftDropIndex("idx:email"); + try {jedis.ftDropIndex("idx:bicycle");} catch (JedisDataException j){} + try {jedis.ftDropIndex("idx:email");} catch (JedisDataException j){} //REMOVE_END SchemaField[] schema = {