I'm using the Square MockWebServer for unit testing of Retrofit client. I do everything as described in github (http://ift.tt/1Fso4Tt). But server receives requests only if I add =>100 ms delay (Thread.sleep(100)) before server.shutdown(). Had you face such issue? How did you solve this problem?
Aucun commentaire:
Enregistrer un commentaire