Skip to content

Commit 2ca0c43

Browse files
committed
Polishing.
Remove invalid test. See #2355
1 parent 7de0a95 commit 2ca0c43

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/test/java/org/springframework/data/redis/core/RedisTemplateIntegrationTests.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -665,18 +665,6 @@ void testExpireAtMillisNotSupported() {
665665
await().until(() -> !template2.hasKey((String) key1));
666666
}
667667

668-
@ParameterizedRedisTest
669-
void testPersist() throws Exception {
670-
// Test is meaningless in Redis 2.4 because key won't expire after 10 ms
671-
K key1 = keyFactory.instance();
672-
V value1 = valueFactory.instance();
673-
redisTemplate.opsForValue().set(key1, value1);
674-
redisTemplate.expire(key1, 10, TimeUnit.MILLISECONDS);
675-
redisTemplate.persist(key1);
676-
Thread.sleep(10);
677-
assertThat(redisTemplate.hasKey(key1)).isTrue();
678-
}
679-
680668
@ParameterizedRedisTest
681669
void testRandomKey() {
682670
K key1 = keyFactory.instance();

0 commit comments

Comments
 (0)