From dfbdd95fda69e99246ee977f19e081931753dd5c Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 24 Apr 2017 16:17:07 +0200 Subject: [PATCH] DATAREDIS-634 - Polishing. Enable Keyspace events in RedisKeyValueAdapterTests. Depending on the test order, Redis might miss the required notify-keyspace-events configuration. --- .../data/redis/core/RedisKeyValueAdapterTests.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/org/springframework/data/redis/core/RedisKeyValueAdapterTests.java b/src/test/java/org/springframework/data/redis/core/RedisKeyValueAdapterTests.java index 17138834b..7065f9006 100644 --- a/src/test/java/org/springframework/data/redis/core/RedisKeyValueAdapterTests.java +++ b/src/test/java/org/springframework/data/redis/core/RedisKeyValueAdapterTests.java @@ -113,6 +113,14 @@ public class RedisKeyValueAdapterTests { return null; } }); + + RedisConnection connection = template.getConnectionFactory().getConnection(); + + try { + connection.setConfig("notify-keyspace-events", "KEA"); + } finally { + connection.close(); + } } @After