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

OpenApiRewriteIntegrationTest failure (because reusing port 3000) #1157

Closed
rrayst opened this issue Jul 1, 2024 · 1 comment · Fixed by #1205
Closed

OpenApiRewriteIntegrationTest failure (because reusing port 3000) #1157

rrayst opened this issue Jul 1, 2024 · 1 comment · Fixed by #1205

Comments

@rrayst
Copy link
Contributor

rrayst commented Jul 1, 2024

Running mvn verify in the parent module leads to

-------------------------------------------------------------------------------
Test set: com.predic8.membrane.core.OpenApiRewriteIntegrationTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.749 s <<< FAILURE! -- in com.predic8.membrane.core.OpenApiRewriteIntegrationTest
com.predic8.membrane.core.OpenApiRewriteIntegrationTest.rewriteURLInOpenAPI -- Time elapsed: 0.679 s <<< ERROR!
com.predic8.membrane.core.transport.PortOccupiedException: Opening a serversocket at '*:3000' failed. Please make sure that the port is not occupied by a different program or change your rule configuration to select another one.
        at com.predic8.membrane.core.transport.http.HttpEndpointListener.<init>(HttpEndpointListener.java:106)
        at com.predic8.membrane.core.transport.http.HttpTransport.openPort(HttpTransport.java:171)
        at com.predic8.membrane.core.RuleManager.addProxyAndOpenPortIfNew(RuleManager.java:119)
        at com.predic8.membrane.core.RuleManager.addProxyAndOpenPortIfNew(RuleManager.java:111)
        at com.predic8.membrane.core.OpenApiRewriteIntegrationTest.setUp(OpenApiRewriteIntegrationTest.java:35)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
@rrayst
Copy link
Contributor Author

rrayst commented Jul 5, 2024

still relevant (on master branch)

@t-burch t-burch linked a pull request Jul 24, 2024 that will close this issue
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 a pull request may close this issue.

1 participant