hibri / HttpMock

A library for creating Http servers on the fly in tests and stubbing responses
MIT License
128 stars 44 forks source link

Response delay #94

Closed wilversings closed 6 years ago

wilversings commented 6 years ago

Added response delay feature. Needed this for one of my projects.

hibri commented 6 years ago

Hi @wilversings I'll look into this, sometime this week and merge it in. Apologies for the delay.

StanislavRadkov commented 6 years ago

Great work! Was looking for this functionality as well! 👍

hibri commented 6 years ago

@wilversings Could you test for multiple stubs in the same test? If one stub has a response delay and another stub does not, this could block all responses, because of the Thread.Sleep

wilversings commented 6 years ago

@hibri Please check now

hibri commented 6 years ago

@wilversings thanks. Will take a look.

hibri commented 6 years ago

Thanks for this @wilversings . I'll make a small change to change the delay from uint to int before I publish the package