elastic / elasticsearch-js-mock

Mock utility for the Elasticsearch's Node.js client
https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-testing.html
Apache License 2.0
47 stars 13 forks source link

How to simulate a delayed response or error? #28

Open fabio-monopoli-ibm opened 1 year ago

fabio-monopoli-ibm commented 1 year ago

Hi, I need to simulate a response or error returned by the mocked cluster with a specific time delay. How to do that? By reading the documentation I didn't found any solution. Thanks