3 ms·
> You can't seriously tell me client retry doesn't have a unit test which ensures the retry back off behaviour Not to join the parade, but what would a unit te
by tclancy 2mo ago
> You can't seriously tell me client retry doesn't have a unit test which ensures the retry back off behaviour
Not to join the parade, but what would a unit test that confirms a cycling behavior across all the instances in-flight even look like? I mean, besides "Not a unit test".
- cube00 2mo agoMock 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 2mo ago> Mock out the network call Man, the day this hits, just know I didn't judge you at all.