From 876b7d5e5eb1772228a14e3086f2b0dfcb737af2 Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Tue, 22 Aug 2023 17:53:05 +0200 Subject: [PATCH] Try fixing remaining failures - don't use SLF4j in HazelcastFaultToleranceTest - set multicast discovery enabled property to true (default in HZ4 but not in HZ5) Signed-off-by: Thomas Segismont --- .../io/vertx/core/ProgrammaticHazelcastClusterManagerTest.java | 1 + .../io/vertx/core/eventbus/HazelcastFaultToleranceTest.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/io/vertx/core/ProgrammaticHazelcastClusterManagerTest.java b/src/test/java/io/vertx/core/ProgrammaticHazelcastClusterManagerTest.java index 4340f81f..65a7a6d3 100644 --- a/src/test/java/io/vertx/core/ProgrammaticHazelcastClusterManagerTest.java +++ b/src/test/java/io/vertx/core/ProgrammaticHazelcastClusterManagerTest.java @@ -79,6 +79,7 @@ private Config createConfig() { .setProperty("hazelcast.wait.seconds.before.join", "0") .setProperty("hazelcast.local.localAddress", "127.0.0.1") .setClusterName(System.getProperty("vertx.hazelcast.test.group.name")); + config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(true); config.getMemberAttributeConfig().setAttribute("__vertx.nodeId", UUID.randomUUID().toString()); return config; } diff --git a/src/test/java/io/vertx/core/eventbus/HazelcastFaultToleranceTest.java b/src/test/java/io/vertx/core/eventbus/HazelcastFaultToleranceTest.java index 45203354..bc19c45c 100644 --- a/src/test/java/io/vertx/core/eventbus/HazelcastFaultToleranceTest.java +++ b/src/test/java/io/vertx/core/eventbus/HazelcastFaultToleranceTest.java @@ -47,8 +47,6 @@ protected ClusterManager getClusterManager() { @Override protected List getExternalNodeSystemProperties() { return Arrays.asList( - "-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory", - "-Dhazelcast.logging.type=slf4j", "-Djava.net.preferIPv4Stack=true", "-Dvertx.hazelcast.test.group.name=" + groupName );