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

WireMock fails to shutdown graceful if test cases fails #3

Open
Mu4h4h4 opened this issue Feb 12, 2019 · 0 comments
Open

WireMock fails to shutdown graceful if test cases fails #3

Mu4h4h4 opened this issue Feb 12, 2019 · 0 comments

Comments

@Mu4h4h4
Copy link

Mu4h4h4 commented Feb 12, 2019

I'm using wiremock with node jest. When the a test fails the next test run will throw

java.lang.RuntimeException: java.net.BindException: Address already in use
The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=d7d87da0-786e-4cc1-a1d8-fe362dcca312.1, currentDir=/Users/vribeiro/dev/repos/hades}
Attempting to read last messages from the daemon log...

If I rerun the task it works fine.

here is my build.gradle

plugins {
    id "com.moowork.node" version "1.2.0"
    id 'com.williamhill.wiremock' version '0.4.1'
}

apply plugin: "base"
apply plugin: "maven"
apply plugin: 'maven-publish'

task runJest(type: NpmTask) {
    runWithWiremock = true
    args = ['run', 'test']
}

zipLambda.dependsOn npmInstall
publish.dependsOn zipLambda

wiremock {
    dir "$projectDir/wiremock/"
    params "--verbose=true"
}

Thank you for this amazing plugin! it works great! 😄

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

No branches or pull requests

1 participant