Pact consumer core crash prevents interactions being completed when using V4 spec #470
Open
5 tasks done
Labels
bug
Indicates an unexpected problem or unintended behavior
Software versions
Please provide at least OS and version of pact-js
@pact-foundation/[email protected]
18.13.0
Issue Checklist
Please confirm the following:
git repositorycode snippet (see below) to illustrate the problemExpected behaviour
When more than one interaction is tested with
pact.addInteraction()...executeTest()
, both tests pass without error.Actual behaviour
The first test passes, but the next one fails with the error:
Pact appears to be re-driving the first interaction, so in subsequent
executeTest()
calls the mock server is receiving the wrong request.This feels like user error, but for the life of me I'm not seeing where I've gone wrong! The docs all appear to be geared around V3 at the moment whilst V4 support is in beta, so I've been using examples such as this one to pull things together.
Steps to reproduce
Minimal-ish script to replicate (
replicate.js
):Run with:
To confirm behaviour with a single test running, comment out
await test1()
and re-run - it should pass with no error.Relevant log files
Minimal logs:
Full debug logs:
The text was updated successfully, but these errors were encountered: