Skip to content

AMQ-9365 - use ephemeral port and disable JMX in tests to prevent parallel CI conflicts.#1819

Open
asaxena14 wants to merge 1 commit intoapache:mainfrom
asaxena14:AMQ-9365
Open

AMQ-9365 - use ephemeral port and disable JMX in tests to prevent parallel CI conflicts.#1819
asaxena14 wants to merge 1 commit intoapache:mainfrom
asaxena14:AMQ-9365

Conversation

@asaxena14
Copy link
Contributor

Fixed two parallel CI test conflicts reported in AMQ-9365:

TcpTransportServerTest: replace hardcoded port 61616 with tcp://localhost:0 and read the actual bound port via server.getConnectURI().getPort() to avoid BindException: Address already in use.

AbstractPendingMessageCursorTest: add broker.setUseJmx(false) to prevent InstanceAlreadyExists JMX errors.

…MX in AbstractPendingMessageCursorTest to prevent conflicts in parallel CI runs.
@asaxena14 asaxena14 marked this pull request as ready for review March 21, 2026 23:24
@jbonofre jbonofre self-requested a review March 22, 2026 05:30
Copy link
Member

@jbonofre jbonofre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is minimal and do the job 😄

Thanks !

I will merge as soon as CI is green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants