vendredi 2 août 2019

Unit testing a webserver disconnect

I'm working on a Chrome extension that manages downloads. I want to (unit) test what happens when I start a download, everything works for a moment and then the server disconnects. From inside my extension I don't have enough control over the download to make a realistic test case.

The most practical solution would be to run a local web server that is configured/coded to only send "half of a file", but I have not found anything like that.




Aucun commentaire:

Enregistrer un commentaire