From 1a535a4596506dc82e85b43659b66e46a94b05c8 Mon Sep 17 00:00:00 2001 From: Bela Ban Date: Wed, 3 Jan 2024 12:36:48 +0100 Subject: [PATCH] - RelayTest: timeout 200'000 -> 2'000 - Made byteman a compile-time dependency (https://issues.redhat.com/browse/JGRP-2742) --- pom.xml | 2 +- tests/junit-functional/org/jgroups/tests/RelayTest.java | 4 ++-- {src => tests/util}/org/jgroups/util/ProfilingHelper.java | 0 {src => tests/util}/org/jgroups/util/ProtPerfHelper.java | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename {src => tests/util}/org/jgroups/util/ProfilingHelper.java (100%) rename {src => tests/util}/org/jgroups/util/ProtPerfHelper.java (100%) diff --git a/pom.xml b/pom.xml index 62c4bb247ff..2a62d8e111e 100644 --- a/pom.xml +++ b/pom.xml @@ -122,7 +122,7 @@ org.jboss.byteman byteman-bmunit 4.0.20 - provided + test true diff --git a/tests/junit-functional/org/jgroups/tests/RelayTest.java b/tests/junit-functional/org/jgroups/tests/RelayTest.java index 8af1aa1942a..afda71dae76 100644 --- a/tests/junit-functional/org/jgroups/tests/RelayTest.java +++ b/tests/junit-functional/org/jgroups/tests/RelayTest.java @@ -408,7 +408,7 @@ public void testSitesUp(Class cl) throws Exception { .map(ch -> (RELAY)ch.getProtocolStack().findProtocol(RELAY.class)) .forEach(r -> r.setRouteStatusListener(new DefaultRouteStatusListener(r::getAddress).verbose(false))); - // now stop A; B will become new site master and we should get a site-down(NYC), then site-up(NYC) + // now stop A; B will become new site master, and we should get a site-down(NYC), then site-up(NYC) Util.close(a); Util.waitUntil(5000, 500, () -> Stream.of(d,e,f,_g,_h,_i) .map(ch -> (RELAY)ch.getProtocolStack().findProtocol(RELAY.class)) @@ -840,7 +840,7 @@ public void testFailover(Class cl) throws Exception { Util.waitUntil(3000, 100, () -> ((RELAY)d.getProtocolStack().findProtocol(RELAY.class)).isSiteMaster()); MyReceiver r=getReceiver(d); - Util.waitUntil(200000, 200, () -> r.size() == 5); + Util.waitUntil(2000, 200, () -> r.size() == 5); Table send_win=unicast.getSendWindow(target); // wait until the ack from D has been received diff --git a/src/org/jgroups/util/ProfilingHelper.java b/tests/util/org/jgroups/util/ProfilingHelper.java similarity index 100% rename from src/org/jgroups/util/ProfilingHelper.java rename to tests/util/org/jgroups/util/ProfilingHelper.java diff --git a/src/org/jgroups/util/ProtPerfHelper.java b/tests/util/org/jgroups/util/ProtPerfHelper.java similarity index 100% rename from src/org/jgroups/util/ProtPerfHelper.java rename to tests/util/org/jgroups/util/ProtPerfHelper.java