smocker-dev/smocker

Mocks should be synchronized

Closed this issue · 1 comments

Thiht commented

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

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