Polishing.

Remove invalid test.

See #2355
This commit is contained in:
Mark Paluch
2022-07-21 11:44:23 +02:00
parent 7de0a95f07
commit 2ca0c43a0b

View File

@@ -665,18 +665,6 @@ public class RedisTemplateIntegrationTests<K, V> {
await().until(() -> !template2.hasKey((String) key1));
}
@ParameterizedRedisTest
void testPersist() throws Exception {
// Test is meaningless in Redis 2.4 because key won't expire after 10 ms
K key1 = keyFactory.instance();
V value1 = valueFactory.instance();
redisTemplate.opsForValue().set(key1, value1);
redisTemplate.expire(key1, 10, TimeUnit.MILLISECONDS);
redisTemplate.persist(key1);
Thread.sleep(10);
assertThat(redisTemplate.hasKey(key1)).isTrue();
}
@ParameterizedRedisTest
void testRandomKey() {
K key1 = keyFactory.instance();