-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Unhandled promise rejection if promise rejects before min delay has passed #25
Comments
// @fisker |
Hello @joukosaastamoinen - to ensure clear understanding, could you kindly clarify the expected behavior following |
I believe this case already tested Lines 29 to 33 in 3ccf4d5
|
The expected behavior would be for the program not to crash and not to produce any error log output. I changed the code snippet in the test description not to use I noticed that there is a test case for this (as @fisker also pointed out), but for some reason, it does not fail, crash nor produce any error log output. But if you try running the code snippet that I provided, it will crash when it clearly shouldn't. So I don't know how to write a test case for this (yet). Thank you for taking the time to look into this and sorry for the long delay in responding to your messages. I was on holiday. |
Running this program (with
node test.mjs
):crashes with this log output:
The promise rejection should not go unhandled and the program should not crash, because there is a
.catch()
after thepMinDelay
call.This bug was likely introduced in this PR: #23
The text was updated successfully, but these errors were encountered: