pact-foundation / pact-js

JS version of Pact. Pact is a contract testing framework for HTTP APIs and non-HTTP asynchronous messaging systems.
https://pact.io
Other
1.62k stars 345 forks source link

@IgnoreMissingStateChange Causes Read Timeout #972

Closed shand-j closed 1 year ago

shand-j commented 1 year ago

I have a contract with an interaction defined that requires a state. The state change method is not implemented on the provider yet so I opted to add the @IgnoreMissingStateChange annotation. My failures then changed to the following read timeout. Feels like a bug.

ENV: jdk 17, gradle, testImplementation "au.com.dius.pact.provider:junit5spring:4.3.14"

ContractVerificationTest > pactVerificationTestTemplate(PactVerificationContext) > com.organisation.cloud.ag.service.integration.pact.provider.ContractVerificationTest.pactVerificationTestTemplate(PactVerificationContext)[1] FAILED java.lang.AssertionError: agentGatewayClient - Upon upon receiving a request Failures:

1) Verifying a pact between agentGatewayClient and agentGateway - upon receiving a request

    1.1) Read timed out
    at au.com.dius.pact.provider.junit5.PactVerificationContext.verifyInteraction(PactVerificationContext.kt:66)
    at com.organisation.cloud.ag.service.integration.pact.provider.ContractVerificationTest.pactVerificationTestTemplate(ContractVerificationTest.java:46)
mefellows commented 1 year ago

This doesn't look to be a JS issue - should this be over at https://github.com/pact-foundation/pact-jvm/

shand-j commented 1 year ago

Ah, yes. my mistake