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
WireMock server failing to stop with Cucumber #37
Comments
Do you have an additional copy of the servlet API on the classpath? In the version of GenericServlet embedded within Jetty, line 205 is a comment, which suggests the version you're running is different. |
Good spot! That seems to be it. All working smoothly now. :) Thanks |
No worries, glad you got it sorted. |
I encounted the same problem. But I have only one servlet jar version in my pom: What's possible reasons? @tomakehurst and my pom version of wiremock is:
|
I've been using WireMock with Cucumber (Cuke4Duke and CucumberJVM) and have been experiencing problems with the lifecycle of WireMock.
I start the server with the following as I can't use the @rule as it is for JUnit, not cucumber.
and stopping with
When
wireMockServer.stop()
is called then I get an exceptionJetty seems not to close and the port (8082) is left occupied, such that should I start to run another test, starting WireMock fails to bind to port 8082.
The text was updated successfully, but these errors were encountered: