Timothy Gates
03/02/2022, 11:56 PM10.0.0-beta.56
to get the timeout fix https://github.com/pact-foundation/pact-js/issues/761
We are running into an issue were the state handlers teardown is no longer being called. I don't see any change in the signature of the state handlers between 10.0.0-beta.54
and the version we are using now. Anyone have any ideas why the teardown isn't be executed? I'll include an example of the code in the thread.Timothy Gates
03/02/2022, 11:57 PM"State Handler": {
resourceId: undefined,
setup: async () => {
console.log("Setup")
resourceId = await setupState();
return Promise.resolve({
queryId: resourceId
});
},
teardown: async () => {
console.log('Teardown')
await teardownState(resourceId);
},
}
Mike Geeves
03/03/2022, 12:38 AMMike Geeves
03/03/2022, 12:39 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Mike Geeves
03/03/2022, 12:11 PMMatt (pactflow.io / pact-js / pact-go)
Mike Geeves
03/03/2022, 12:11 PMMike Geeves
03/03/2022, 12:12 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
resourceId
) but that shouldn’t break thingsMike Geeves
03/03/2022, 12:21 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
10.0.0-beta.58
?Matt (pactflow.io / pact-js / pact-go)
Timothy Gates
03/03/2022, 4:02 PM--state-change-teardown
and if that doesn't work I'll see about bumping the version to the latest.Timothy Gates
03/03/2022, 4:31 PM--state-change-teardown
arg didn't have any effect. But bumping to version to 10.0.0-beta.58
did work. The teardowns are now being executed.Mike Geeves
03/03/2022, 4:33 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)