Open techandsoftware opened 4 years ago
Hi, did you test to throw the error in the get
method instead in the fixtures
?
Yes, the result is the same.
I think the problem is with superagent-mock that don't handle superagent's retry method. We don't use the retry feature of superagent, but feel free to open a PR to fix this bug 😉
I'll try and work it out :)
I'm trying to do the following
I've written a small test script, from what it looks like the failure happens immediately after the exeption even though the retry callback is called 3 times afterwards.
Here's my script
Output is failed retrying retrying __retrying
Is there an error with how superagent-mock interacts with retry or am I approaching this the wrong way?