Fix Jedis persist does not execute as part of a transaction
DATAREDIS-160
This commit is contained in:
@@ -699,7 +699,7 @@ public class JedisConnection implements RedisConnection {
|
||||
public Boolean persist(byte[] key) {
|
||||
try {
|
||||
if (isQueueing()) {
|
||||
client.persist(key);
|
||||
transaction.persist(key);
|
||||
return null;
|
||||
}
|
||||
if (isPipelined()) {
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
package org.springframework.data.redis.connection.jedis;
|
||||
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@@ -10,7 +7,6 @@ import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.data.redis.RedisSystemException;
|
||||
import org.springframework.data.redis.connection.RedisPipelineException;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
@@ -19,10 +15,6 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
public class JedisConnectionTransactionIntegrationTests extends
|
||||
JedisConnectionPipelineIntegrationTests {
|
||||
|
||||
@Ignore("DATAREDIS-160 Jedis persist does not execute as part of a transaction")
|
||||
public void testPersist() throws Exception {
|
||||
}
|
||||
|
||||
@Ignore("DATAREDIS-159 brPop executes twice in a transaction")
|
||||
public void testBRPop() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user