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

"calls" constraint of mock in not always cleared before next test run #32

Closed
jvarlamova opened this issue Nov 22, 2019 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@jvarlamova
Copy link

jvarlamova commented Nov 22, 2019

How to reproduce:

  1. Execute test with mock with "calls" constraint
...
 mocks:
    someservice:
      strategy: uriVary
      uris:
         v1/test:
          calls: 1
          strategy: file
          filename: responses/test.json
...
  1. After that run next test without mocks.
    It will fail with error:

mock someservice: at path $.uriVary.v1/test: number of calls does not match: expected 1, actual 0

@luza luza added the bug Something isn't working label Nov 22, 2019
fetinin added a commit to fetinin/gonkey that referenced this issue Nov 28, 2019
luza pushed a commit that referenced this issue Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants