3 ms·
Mock out the network call (which you'd be doing anyway because unit tests never connect to the network) so it always returns a failure. Mock out the timer. Cal
by cube00 2mo ago
Mock out the network call (which you'd be doing anyway because unit tests never connect to the network) so it always returns a failure. Mock out the timer.
Call the function multiple times and ensure it'd passing the expected wait durations in for each time it's called followed by a fatal error after say 30 seconds.
- tclancy 1mo ago> Mock out the network call Man, the day this hits, just know I didn't judge you at all.