-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test retry() and wait() #41
Comments
I don't think there are tests that cover the timeout handler, either. |
|
Does this fix the mocha vs IcedFrisby mismatch with timeouts? A trimmed version of my test:
My npm script is this
This endpoint has a large (~500KB) payload, generated from a few different sources on demand and so takes ~4 seconds to generate (hence being behind CloudFront in production). When it takes slightly longer I'm getting 1 run of 5s and the error of |
Yes, I think it will, though it hasn't been shipped yet. We have some breaking changes and should get ready for a 2.0.0 release. Would shipping a prerelease version make sense? |
Let's hold off for now. I can get around it with a mocha commandline timeout of the timeout x retries, plus a little for processing. In my example above, I had a 5s timeout and 2 retries, so gave a generous 20s to mocha, and all is well. We haven't had any other reports of being blocked (and the workaround is now documented 😁). A prerelease sounds like a good idea in general though. Get an alpha out to test with, once everything we want is into master. A little off-topic for this issue, but do we have a list of things we want to get into v2 before it ships? |
The retry and wait functionality are not covered by tests. Without coverage, we risk breaking them during refactors.
The text was updated successfully, but these errors were encountered: