java - Is it possible to simulate connection timeout using wiremock tools? -


i know, can simulate sockettimeoutexception using withfixeddelay, connectiontimeoutexception?

yes possible wiremock calling adddelaybeforeprocessingrequests(300) against java api or posting following http://<host>:<port>/__admin/socket-delay:

{ "milliseconds": 300 }

(obviously replacing 300 many milliseconds you'd delay by)


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -