-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Fix use of floating number for the timeout
and forceKillAfterTimeout
options
#431
Conversation
Ok I can see it's an intentional behavior
not sure why 🤔 |
I don't remember. Maybe try Git blame. |
the code was refactored several times but I couldn't determinate if number over float is necessary for a thing, maybe @ehmicky can know 🙂 |
Yes, I think we should allow floats. |
Yes, let’s do that. |
Co-authored-by: Sindre Sorhus <[email protected]>
Co-authored-by: ehmicky <[email protected]>
Co-authored-by: ehmicky <[email protected]>
The CI test are failing due to the following test: Line 64 in a827d82
This probably should be changed to check for |
@ehmicky test updated; still, some tests are failing but for a different reason no related with this PR |
Thanks @Kikobeats, It looks like you accidentally also removed the test that checks that the argument is not negative. Could you please add it back? Thanks :) |
@ehmicky ops, done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
timeout
and forceKillAfterTimeout
options
When the
timeout
orforceKillAfterTimeout
a float number is causes an error that can be avoided