Skip to content

Commit 492634a

Browse files
committed
Polishing.
Remove invalid test. See #2367
1 parent 9060fa0 commit 492634a

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
@@ -648,18 +648,6 @@ void testExpireAtMillisNotSupported() {
648648
await().until(() -> !template2.hasKey((String) key1));
649649
}
650650

651-
@ParameterizedRedisTest
652-
void testPersist() throws Exception {
653-
// Test is meaningless in Redis 2.4 because key won't expire after 10 ms
654-
K key1 = keyFactory.instance();
655-
V value1 = valueFactory.instance();
656-
redisTemplate.opsForValue().set(key1, value1);
657-
redisTemplate.expire(key1, 10, TimeUnit.MILLISECONDS);
658-
redisTemplate.persist(key1);
659-
Thread.sleep(10);
660-
assertThat(redisTemplate.hasKey(key1)).isTrue();
661-
}
662-
663651
@ParameterizedRedisTest
664652
void testRandomKey() {
665653
K key1 = keyFactory.instance();

0 commit comments

Comments
 (0)