From 2ca0c43a0bf2b56818d50eecd364d9ee5de3bcd6 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 21 Jul 2022 11:44:23 +0200 Subject: [PATCH] Polishing. Remove invalid test. See #2355 --- .../redis/core/RedisTemplateIntegrationTests.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/test/java/org/springframework/data/redis/core/RedisTemplateIntegrationTests.java b/src/test/java/org/springframework/data/redis/core/RedisTemplateIntegrationTests.java index 916761bc7..bd6bb6e10 100644 --- a/src/test/java/org/springframework/data/redis/core/RedisTemplateIntegrationTests.java +++ b/src/test/java/org/springframework/data/redis/core/RedisTemplateIntegrationTests.java @@ -665,18 +665,6 @@ public class RedisTemplateIntegrationTests { 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();