Skip to content

Commit

Permalink
Improve timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 13, 2019
1 parent 7a51cf4 commit edc5092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processes/timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const getTimeout = function(duration) {
return
}

return Math.max(duration / NANOSECS_TO_MILLISECS, 1)
return Math.ceil(duration / NANOSECS_TO_MILLISECS)
}

export const getTimeoutError = function(duration) {
Expand Down

0 comments on commit edc5092

Please sign in to comment.