Skip to content

Commit 37957cb

Browse files
committed
Update tests to match new behavioral on RedisJSON 1.2.0 see:
RedisJSON/RedisJSON#152
1 parent 0031f88 commit 37957cb

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/test/java/com/redislabs/modules/rejson/ClientTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,9 @@ public void delValidShouldSucceed() throws Exception {
163163
assertFalse(jedis.exists("obj"));
164164
}
165165

166-
@Test(expected = Exception.class)
167166
public void delException() throws Exception {
168167
client.set( "foobar", new FooBarObject(), Path.ROOT_PATH);
169-
client.del( "foobar", new Path(".foo[1]"));
168+
assertEquals(0L, client.del( "foobar", new Path(".foo[1]")).longValue());
170169
}
171170

172171
@Test

src/test/java/com/redislabs/modules/rejson/StaticClientTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,10 @@ public void delValidShouldSucceed() throws Exception {
207207
assertFalse(jedis.exists("obj"));
208208
}
209209

210-
@Test(expected = Exception.class)
211210
public void delException() throws Exception {
212211
jedis.flushDB();
213212
reJSON.set("foobar", new FooBarObject(), Path.ROOT_PATH);
214-
reJSON.del("foobar", new Path(".foo[1]"));
213+
assertEquals(0L, reJSON.del( "foobar", new Path(".foo[1]")).longValue());
215214
}
216215

217216
@SuppressWarnings("deprecation")

0 commit comments

Comments
 (0)