From 512227175013cc1d083b3df89184c120cfd50a15 Mon Sep 17 00:00:00 2001 From: Chris Eager Date: Fri, 30 Aug 2024 08:19:56 -0500 Subject: [PATCH] Configure keyspace notifications in LocalFaultTolerantRedisClusterFactory --- .../configuration/LocalFaultTolerantRedisClusterFactory.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/src/test/java/org/whispersystems/textsecuregcm/configuration/LocalFaultTolerantRedisClusterFactory.java b/service/src/test/java/org/whispersystems/textsecuregcm/configuration/LocalFaultTolerantRedisClusterFactory.java index f9e181cad..7c78314d1 100644 --- a/service/src/test/java/org/whispersystems/textsecuregcm/configuration/LocalFaultTolerantRedisClusterFactory.java +++ b/service/src/test/java/org/whispersystems/textsecuregcm/configuration/LocalFaultTolerantRedisClusterFactory.java @@ -22,6 +22,9 @@ private LocalFaultTolerantRedisClusterFactory() { try { redisClusterExtension.beforeAll(null); redisClusterExtension.beforeEach(null); + + redisClusterExtension.getRedisCluster().useCluster(connection -> + connection.sync().upstream().commands().configSet("notify-keyspace-events", "K$glz")); } catch (final Exception e) { throw new RuntimeException(e); }