Open eeelin opened 4 years ago
To fix it, maybe we need make mock service stateful
The mock service is stateful. You need to test those two scenarios in separate tests. Please read https://github.com/pact-foundation/pact-mock_service#mock-service-usage
consumer code,
test code,
the test above is not valid, because there two GET requests match path "/user/foo/tokens".
To fix it, maybe we need make mock service stateful. The state of service can be changed on specific match interaction, just like presudo code below,