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

Mocks should be synchronized #14

Closed
Thiht opened this issue Sep 25, 2019 · 1 comment
Closed

Mocks should be synchronized #14

Thiht opened this issue Sep 25, 2019 · 1 comment

Comments

@Thiht
Copy link
Collaborator

Thiht commented Sep 25, 2019

With this mock for example:

request:
  method: GET
  path: /foo
context:
  times: 3
response:
  status: 200

If a client runs 10 calls in parallel to /foo, there's a risk that the mock server replies more than 3 times

@gwleclerc
Copy link
Collaborator

I used a mutex on mockServer struct so this could not happen anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants