Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8261: Use test flag to skip JDP multicast tests in JolokiaTest #588

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,8 @@ private static MBeanServerConnection getJolokiaMBeanConnector() throws IOExcepti

@Test
public void testDiscover() {
boolean isMacOs = "macosx".equals(System.getProperty("osgi.os"));
boolean isCiRun = "true".equals(System.getenv("GITHUB_ACTIONS"));
boolean shouldTestMacOS = "true".equals(System.getenv("JOLOKIA_TEST_DISCOVERY_ON_MAC"));
if (isMacOs && isCiRun && !shouldTestMacOS) {
//This does not work in the JMC CI pipeline for Mac
if ("true".equals(System.getProperty("skipJDPMulticastTests"))) {
//In certain situations multicast will not work
// 'D> --> Couldnt send discovery message from /127.0.0.1: java.net.BindException: Can't assign requested address
// D> --> Exception during lookup: java.util.concurrent.ExecutionException:
// org.jolokia.service.discovery.MulticastUtil$CouldntSendDiscoveryPacketException:
Expand Down