From c8bb3c7b579aeb30537404b62f9a30cb0b32cc03 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Mon, 28 Mar 2022 09:23:55 +1300 Subject: [PATCH] Fix test ebean-redis ClusterTest such that it allows for background thread sync to redis --- ebean-redis/src/test/java/org/integration/ClusterTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ebean-redis/src/test/java/org/integration/ClusterTest.java b/ebean-redis/src/test/java/org/integration/ClusterTest.java index 64cca33b9..16b193dee 100644 --- a/ebean-redis/src/test/java/org/integration/ClusterTest.java +++ b/ebean-redis/src/test/java/org/integration/ClusterTest.java @@ -27,7 +27,7 @@ public class ClusterTest { } @Test - public void testBothNear() { + public void testBothNear() throws InterruptedException { // ensure the default server exists first final Database db = DB.getDefault(); Database other = createOther(db.pluginApi().dataSource()); @@ -44,6 +44,7 @@ public class ClusterTest { other.metaInfo().resetAllMetrics(); Person fooA = DB.find(Person.class, foo.getId()); + allowAsyncMessaging(); // allow time for background cache load Person fooB = other.find(Person.class, foo.getId()); DuelCache dualCacheA = (DuelCache) DB.cacheManager().beanCache(Person.class);