Skip to content

Commit 86bd38a

Browse files
committed
Polishing.
Remove invalid test. See #2355
1 parent cd1260e commit 86bd38a

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
@@ -664,18 +664,6 @@ void testExpireAtMillisNotSupported() {
664664
await().until(() -> !template2.hasKey((String) key1));
665665
}
666666

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

0 commit comments

Comments
 (0)