Skip to content

Conversation

@bevzzz
Copy link
Collaborator

@bevzzz bevzzz commented Jul 16, 2025

MockServer does not verify exclusive ownership of the port and using any well-known port like 8080 will produce flaky test results with fairly confusing errors, like:

path /mockserver/verifySequence was not found

if another webserver is listening to that port. We use 0 to let the underlying system find an available port.

@bevzzz bevzzz self-assigned this Jul 16, 2025
Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@bevzzz bevzzz changed the title v6: start MockServer on a random port v6: Start MockServer on a random port Jul 16, 2025
@bevzzz bevzzz merged commit 9293a03 into v6 Jul 16, 2025
2 checks passed
@bevzzz bevzzz deleted the v6-fix-mockserver-port-binding branch July 16, 2025 16:45
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.

3 participants